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,
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
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:
==
3 matches
Mail list logo