Opened 9 years ago

Closed 9 years ago

#25273 closed Uncategorized (needsinfo)

get_form() got an unexpected keyword argument 'form_class'

Reported by: Robin Owned by: nobody
Component: Uncategorized Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Robin)

This error gets thrown inside class "FormMixinBase" in "django/views/generic/" 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.

Change History (2)

comment:1 by Robin, 9 years ago

Description: modified (diff)

comment:2 by Claude Paroz, 9 years ago

Resolution: needsinfo
Status: newclosed

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

Note: See TracTickets for help on using tickets.
Back to Top