Re: Setting a default value for a select widget in a modelformset
On Sep 2, 2010, at 4:41 PM, Steve McConville wrote:
> What would be the best way to go about this? Is it necessary to create
> a custom widget to achieve this?
I guess the best way would be to use the 'initial' parameter.
http://docs.djangoproject.com/en/dev/topics/forms/formsets/#using-initial-data-with-a-formset
Cheers, Roald
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home