For starters, validate the form before getting its data
smsPduForm = SmsPduForm(request.POST)
if smsPduForm.is_valid():
d = smsPduForm.cleaned_data
smsc = d['SMSC']
# etc...
regarding the form assignment, I'm not too sure what you're trying to do.
¿Do you want to display the same form
I am trying to update a form field after getting a form in the POST method.
When I am trying to update the form I am getting following error
Request Method: POST
Django Version: 1.6.6
Exception Type: TypeError
Exception Value:
'SmsPduForm' object does not support item assignment
My Form Co
2 matches
Mail list logo