8👍
✅
You need to pass *args
and **kwargs
when you call super()
:
def __init__(self, *args, **kwargs):
super(SingleSampleForm, self).__init__(*args, **kwargs)
At the moment, calling __init__
without any *args
or **kwargs
is equivalent to calling with data=None
. The form is unbound, so will never be valid.
Source:stackexchange.com