#25273: get_form() got an unexpected keyword argument 'form_class'
-------------------------------+--------------------------------------
     Reporter:  robintiwari    |                    Owner:  nobody
         Type:  Uncategorized  |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.8
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by robintiwari):

 * needs_better_patch:   => 0
 * needs_tests:   => 0
 * needs_docs:   => 0


Old description:

> This error gets thrown inside class "FormMixinBase" in
> "django/views/generic/edit.py" file.
>
> Below is the method where its been used:
>
> def get_form_with_form_class(self, form_class=None):
>                     if form_class is None:
>                         form_class = self.get_form_class()
>                     return get_form(self, form_class=form_class)
>
> from the documentation, "form_class" argument inside get_form can be
> removed.

New description:

 This error gets thrown inside class "FormMixinBase" in
 "django/views/generic/edit.py" file.

 Below is the method where its been used:


 {{{
 def get_form_with_form_class(self, form_class=None):
                     if form_class is None:
                         form_class = self.get_form_class()
                     return get_form(self, form_class=form_class)
 }}}


 from the documentation, "form_class" argument inside get_form can be
 removed.

--

--
Ticket URL: <https://code.djangoproject.com/ticket/25273#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/069.349b2ff93c5d584b9a4f00f63b1f5ebf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to