Re: Not able to update a form in Django after post method

2015-01-05 Thread Vijay Khemlani
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

Not able to update a form in Django after post method

2015-01-05 Thread rajat shukla
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