Hi all, I am having a problem trying to add a field that i excluded in my ModelForm class in my views.py. This field is requeired by the model . In the django documentation says i should do the following:
form = Myform(request.POST) formInstance = form.save(commit=False) formInstance.field_excluded = u"field value" formInstance.save() I tried it but get an error that the field_excluded cannot be null. What i am i doing wrong? thanks in advance, Jorge Hugo Murillo ____________________________________________________________________________________ You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost. http://tc.deals.yahoo.com/tc/blockbuster/text5.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---