On Tue, Apr 9, 2013 at 6:09 AM, Nora Olsen <[email protected]> wrote: > > The following snippet is returning an empty dictionary for the 2nd form: > > … > > How does initial work with data= in a formset? Without the initial, there > will be cleaned data for the 2nd form. >
I see you found your error, but to answer the question above, it behaves the same as a form - a form that is provided with both 'data' and 'initial' will ignore 'initial', even if a field that is present in 'initial' is missing in 'data'. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.

