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:

==============================================
class TurtleForm(forms.ModelForm):
class Meta:
model = Turtle

widgets = {
'turtle_type': forms.RadioSelect,
}
==============================================

The problem is that when I display the TurtleForm, it shows a radio
select for "---------", which correlates to a null option. This
doesn't validate when the form is submitted and I don't want it to be
a selectable option. How can I prevent this from being displayed?
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, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to