#12213: Initial data and addition queryset_filter for formset from
inlineformset_factory
---------------------------+------------------------------------------------
 Reporter:  ramusus        |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  1.1       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  0              |  
---------------------------+------------------------------------------------
 To the continue of the discussion here: http://groups.google.ru/group
 /django-developers/browse_thread/thread/73af9e58bd7626a8/e307d4865759a26e

 I also need the ability to define initial data for formset from
 inlineformset_factory. It's very strange to limit this by the framework
 for inlineformset_factory, but not limit for modelformset_factory.

 Queryset parameter created automatically inside inlineformset_factory, but
 I can imagine situation, when it's necessary to generate form and formset
 with not all linked objects. For example If I need to see formset with
 instances, filtered by special condition, based on fields. For this
 purpose I added queryset_filter parameter, that passed as a kwargs
 argument into queryset.filter(**queryset_filter).

 Formsets is a great mechanism, that simplify many routine operations with
 linked objects. I think it's better to have ability tune this mecanism in
 detail.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/12213>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=.


Reply via email to