[Django] #25273: get_form() got an unexpected keyword argument 'form_class'

25 views
Skip to first unread message

Django

unread,
Aug 13, 2015, 9:35:32 PM8/13/15
to django-...@googlegroups.com
#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 | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
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>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Aug 13, 2015, 9:36:09 PM8/13/15
to django-...@googlegroups.com
#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

unread,
Aug 14, 2015, 3:41:58 AM8/14/15
to django-...@googlegroups.com
#25273: get_form() got an unexpected keyword argument 'form_class'
-------------------------------+--------------------------------------
Reporter: robintiwari | Owner: nobody
Type: Uncategorized | Status: closed
Component: Uncategorized | Version: 1.8
Severity: Normal | Resolution: needsinfo
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 claudep):

* status: new => closed
* resolution: => needsinfo


Comment:

Could you please provide the full traceback of the error, and some code
that can be used to reproduce the error?

--
Ticket URL: <https://code.djangoproject.com/ticket/25273#comment:2>

Reply all
Reply to author
Forward
0 new messages