2👍
✅
It shouldn’t be accessed at all. The form consists of initial data and cleaned data. If you refer to initial data, use instance
. If you need value after user’s action, call is_valid
or full_clean
and later look for value in cleaned_data
. Everything in between is hacking.
If you want to perform any special cleaning on img_form.image
, create clean_image
method, but you’re probably aware of that already.
Source:stackexchange.com