On Wed, Sep 30, 2009 at 10:53 AM, dijxtra <nsko...@gmail.com> wrote: > > I'm getting "'NoneType' object has no attribute 'widget'" exception > and I just can't figure out where is the problem. Here is my error: > > Django Version: 1.1 > > Traceback: > [snip] >
In this form: 1. class DiaryEntryForm(ModelForm): 2. importance = models.IntegerField(choices=IMPORTANCE_CHOICES) 3. class Meta: 4. model = DiaryEntry 5. fields = ['text', 'date', 'type', 'importance'] 'importance' has been specified as a model field instead of a form field. It needs to be a form field, since this is a form, not a model. Karen --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---