In Django form,
If you didnt check field data by form.is_valid()
and if you want to get data by form['filed_name']
and keep processing and you will get error like below
If you didnt check field data by form.is_valid()
and if you want to get data by form['filed_name']
and keep processing and you will get error like below
'BoundField' object cannot be interpreted as an integer
You have to check the form is valid or not
and then using form.cleaned_data['fieldname'] to get the value and process
留言
發佈留言