On Sun, Dec 27, 2015 at 11:00 PM, Wim Feijen <[email protected]> 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 construct queryset by hand. Or they want to use an empty queryset, > just to add data. > > In my opinion it would be better to set the empty queryset as a default. > > Do you agree? > I think both potential defaults are completely arbitrary. One represents “Edit everything that is currently available”; the other represents “Give me the ability to add new things”. Which one is a “more appropriate” default will ultimately come down to your own use cases. However, even if your *were* completely correct in saying that the second interpretation was a more common one, it would be exceedingly difficult to make this change because of backwards compatibility. For that reason alone, I’d suggest that this proposal isn’t likely to go very far. Yours, Russ Magee %-) -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" 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 https://groups.google.com/group/django-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/CAJxq84-eXPiJQ35gJVkR7K%2BfdVD4YVG48sx8RX7F4Wdzyzms7A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
