Haven't been able to get this to work, and no one has responded with
advice or a workaround.
Can anyone confirm that this is a bug, or tell me what I'm doing
wrong?

On Dec 3, 5:28 pm, Info Cascade <informationcasc...@gmail.com> wrote:
> Hi --
>
> I am trying to set some reasonable defaults asinitialfieldvaluesin a
> formset.  Here is what I'm doing
>
> section_form_initial = {
>             'audio_publisher':default_publisher,
>             'audio_license':default_license,
>             'text_format':default_text_format
>             }
>
> If I do this:
>         section_forms = SectionFormSet(initial=[section_form_initial])
> Only the first form has theinitialvalues.
>
> If I do this:
>         section_forms =
> SectionFormSet(initial=[section_form_initial]*extra_form_count)
> The first <extra> forms haveinitialvalues, but the formset creates an
> additional <extra> forms.
>
> How can I setinitialvaluesfor the correct number of forms?
>
> Liam

--

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