I have two forms named GoodAtForm
and PaidForForm
. What these do is as follows...
GoodAtForm
Takes an input from a l
Usually the first "positional" argument passed to a Django form is the request data, you've defined request
as the first argument to your form class but are passing request.POST
in your view
You either need to pass request as the first argument every time that you instantiate your form
form = GoodForm(request, request.POST)
or change request to be a keyword argument
class GoodAtForm(forms.Form):
def __init__(self, *args, request=None, **kwargs):
super().__init__(*args, **kwargs)
...
form = GoodForm(request.POST, request=request)