1👍
The problem here is, if the request method is not POST, then the form object does not get initialized. Thats why you are getting this error.
Make sure you check for is_valid()
only if the form object is initialized.
Source:stackexchange.com
1👍
The problem here is, if the request method is not POST, then the form object does not get initialized. Thats why you are getting this error.
Make sure you check for is_valid()
only if the form object is initialized.