Opened 9 years ago

Last modified 9 years ago

#25273 closed Uncategorized

get_form() got an unexpected keyword argument 'form_class' — at Initial Version

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

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 (0)

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