Re: Proposal: by default, don't populate a modelformset with all model instances.

2015-12-27 Thread Russell Keith-Magee
On Sun, Dec 27, 2015 at 11:00 PM, Wim Feijen wrote: > By default, when you create a formset from a model, the formset will use a > queryset that includes all objects in the model (e.g., > Author.objects.all()). > > In most use cases, people will want to use a specific subset of data and > will co

Proposal: by default, don't populate a modelformset with all model instances.

2015-12-27 Thread Wim Feijen
By default, when you create a formset from a model, the formset will use a queryset that includes all objects in the model (e.g., Author.objects.all() ). In most use cases, people will want to use a specific subset of data and will construct queryset by hand. Or they want to use an empty querys