1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Fixed #18872 -- Added prefix to FormMixin

Thanks @ibustama for the initial patch and dragonsnaker for opening the
report.
This commit is contained in:
Gilberto Gonçalves
2013-06-22 12:12:43 +01:00
parent ef79582e86
commit ef37b23050
5 changed files with 40 additions and 2 deletions

View File

@@ -35,6 +35,10 @@ FormMixin
The URL to redirect to when the form is successfully processed.
.. attribute:: prefix
Sets the :attr:`~django.forms.Form.prefix` for the generated form.
.. method:: get_initial()
Retrieve initial data for the form. By default, returns a copy of

View File

@@ -731,6 +731,9 @@ Miscellaneous
of the admin views. You should update your custom templates if they use the
previous parameter name.
* Added :attr:`~django.views.generic.edit.FormMixin.prefix` to allow you to
customize the prefix on the form.
Features deprecated in 1.6
==========================