Re: ModelForm gives invalid option.

2010-05-26 Thread Joshua Frankenstein Lutes
That did it! Thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options,

Re: ModelForm gives invalid option.

2010-05-26 Thread Nuno Maltez
You simply need to provide a default value for your field, i.e. : turtle_type = models.IntegerField(null=False, blank=False, choices=TURTLE_TYPES, default=1) See the notes on: http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#field-types hth, Nuno On Tue, May 25, 2010 at 10:05 PM, J

ModelForm gives invalid option.

2010-05-25 Thread Joshua Frankenstein Lutes
I have a Model that looks something like this: == class Turtle(models.Model): turtle_type = models.IntegerField(null=False, blank=False, choices=TURTLE_TYPES) == I use it to create a ModelForm: ==