mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +00:00
Fixed #23656 -- Made FormMixin.get_form's form_class argument optional.
Thanks Tim Graham for the review.
This commit is contained in:
parent
19242c675f
commit
f2ddc439b1
6 changed files with 93 additions and 11 deletions
|
@ -49,10 +49,15 @@ FormMixin
|
|||
Retrieve the form class to instantiate. By default
|
||||
:attr:`.form_class`.
|
||||
|
||||
.. method:: get_form(form_class)
|
||||
.. method:: get_form(form_class=None)
|
||||
|
||||
Instantiate an instance of ``form_class`` using
|
||||
:meth:`~django.views.generic.edit.FormMixin.get_form_kwargs`.
|
||||
If ``form_class`` isn't provided :meth:`get_form_class` will be used.
|
||||
|
||||
.. versionchanged:: 1.8
|
||||
|
||||
The ``form_class`` argument is not required anymore.
|
||||
|
||||
.. method:: get_form_kwargs()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue