now this question is probably better posted in django-users, but: is there any way to prepopulate an unbound formset using inlineformset_factory?
thanks, patrick On Aug 19, 10:05 pm, "Justin Fagnani" <[EMAIL PROTECTED]> wrote: > Uh.. disregard that. My mistake. I read the code wrong and > BaseInlineFormSet does not take **kwargs and pass them to > BaseModelFormSet.__init__(), so no you can't specify 'initial'. Which > is good. > > -Justin > > On Tue, Aug 19, 2008 at 12:54 PM, Justin Fagnani > > <[EMAIL PROTECTED]> wrote: > > On Tue, Aug 19, 2008 at 12:22 PM, Brian Rosner <[EMAIL PROTECTED]> wrote: > >>Seems > >> a bit overkill for the general case due to the unknown size of the > >> queryset. > > > It is possible to specify both a queryset and initial data with a > > ModelFormSet or InlineModelFormSet, and initial will override the > > queryset, but the queryset is still kept around. Looks like that could > > cause some problems in save_existing_objects(), especially if initial > > and queryset aren't the same size. > > > -Justin > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---
