I don't think you are defining the ModelForm correctly, the whole point is that Django creates the fields for you. If you look at:
http://docs.djangoproject.com/en/dev/topics/forms/modelforms This is the key difference between a ModelForm and a normal form: http://docs.djangoproject.com/en/dev/topics/forms/#form-objects You'll see there are no field definitions and there is instead a pointer through class Meta: to the model. The form is trying to create the model and failing. A better form for you would be: class SurveyForm(forms.ModelForm): class Meta: model = Survey (add in your import statement so it knows what Survey is). Cheers -- Andy McKay ClearWind Consulting: www.clearwind.ca Blog: www.agmweb.ca/blog/andy --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---