1👍
✅
In both cases you actually pass the request.POST
dictionary as a single argument to the form’s __init__
method. That way the form can differentiate the actual post data and other arguments. The request.POST
dictionary is in its completeness saved in the data
attribute. Later on, in the is_valid
method, the keys and values in the dictionary are checked against the form’s fields and used to validate the form and populate the cleaned_data
attribute.
👤knbk
Source:stackexchange.com