I guess you can use the choices in the form that you´ve created!

class AuthorForm(forms.Form):
    name = forms.CharField(max_length=100)
    title = forms.CharField(max_length=3,
                widget=forms.Select(choices=TITLE_CHOICES))
    birth_date = forms.DateField(required=False)

Take a look here <http://docs.djangoproject.com/en/dev/topics/forms/modelforms/>

There´s an explanation for what you desire!




2009/7/15 Wiiboy <jordon...@gmail.com>

>
> Sorry, I was little unclear above.  I need to set the default for a
> form.
> >
>


-- 
http://chevitarese.wordpress.com

Fred Chevitarese - GNU/Linux

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to