Opened 6 years ago

Closed 6 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/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.

Change History (2)

comment:1 Changed 6 years ago by Robin

Description: modified (diff)

comment:2 Changed 6 years ago by Claude Paroz

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