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 )
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 by , 9 years ago
Description: | modified (diff) |
---|
comment:2 by , 9 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Could you please provide the full traceback of the error, and some code that can be used to reproduce the error?