| Age | Commit message (Collapse) | Author |
|
uses to_field.
|
|
treating data={} as unbound.
|
|
list" crash.
|
|
|
|
COUNT is more expensive than EXISTS; use the latter when possible.
|
|
Instead of loading all QuerySet results in memory, count the number of
entries. This adds an extra query when list() or tuple() is called on the
choices (because both call __len__() then __iter__()) but uses less
memory since the QuerySet results won't be cached. In most cases, the
choices will only be iterated on, meaning that __len__() won't be called
and only one query will be executed.
|
|
|
|
When __len__() is called (e.g. when casting to list or tuple), the
QuerySet is evaluated and the result cache populated. iterator()
shouldn't be called on the QuerySet after that, as it would reset the
result cache and trigger a second query.
|
|
manager.
Removing all() in __iter__() prevents a duplicate query when choices are
cast to a list and there's a prefetch_related().
|
|
continue statements.
|
|
|
|
|
|
|
|
|
|
|
|
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda
because try/except performs better.
|
|
|
|
|
|
BaseModelFormSet._construct_form().
|
|
field_for_model() now has an additional keyword argument,
apply_limit_choices_to, allowing it to continue to be used to create
form fields dynamically after ModelForm.__init__() is called.
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
iter(dict) is equivalent to iter(dict.keys()).
|
|
save_as_new.
Regression in 4a246a02bdcbc13b15480c014f51cb0682af7c1e.
|
|
Thanks Tim Graham for the review.
|
|
Regression in 9153d8fbd6385db9f48793662de789fc3d686841.
|
|
InlineForeignKeyField/ModelMultipleChoiceField error messages.
|
|
queryset cache.
Thanks Luke Benstead for the report Simon Charettes for the fix.
|
|
|
|
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
Thanks Tim Graham for the review.
|
|
Thanks Tim Graham and Simon Charette for the reviews.
|
|
|
|
in data.
|
|
fields_for_model().
|
|
FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget.
Thanks Matt Westcott for the review.
|
|
The smart_* version should only be used when a lazy string should keep
its lazy status.
|
|
|
|
|
|
|
|
|
|
|
|
inline formsets.
|
|
fields.
|