| Age | Commit message (Collapse) | Author |
|
Thanks Mariusz Felisiak for auditing.
|
|
|
|
|
|
unique_together validation.
|
|
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.
|
|
|
|
|
|
manager.
Removing all() in __iter__() prevents a duplicate query when choices are
cast to a list and there's a prefetch_related().
|
|
|
|
|
|
|
|
syntax.
|
|
Previously, it was a QuerySet which could reevaluate to a new value if the
model's data changes. This is inconsistent with other Field.value_from_object()
methods.
This allows reverting the fix in the admin for refs #27998.
|
|
|
|
|
|
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()).
|
|
|
|
Regression in 9153d8fbd6385db9f48793662de789fc3d686841.
|
|
|
|
queryset cache.
Thanks Luke Benstead for the report Simon Charettes for the fix.
|
|
|
|
widget rendering.
|
|
|
|
These functions do nothing on Python 3.
|
|
|
|
|
|
Thanks Tim Graham for the review.
|
|
Thanks Tim Graham and Simon Charette for the reviews.
|
|
|
|
|
|
non-empty first value.
|
|
Thanks Carl Meyer and Tim Graham for contributing to the patch.
|
|
|
|
fields_for_model().
|
|
|
|
instances.
|
|
|
|
FileInput, SplitDateTimeWidget, SelectDateWidget, and SplitArrayWidget.
Thanks Matt Westcott for the review.
|
|
boolean syntax.
|
|
|
|
|
|
|
|
|
|
RadioSelect.
|
|
|
|
Partially reverted refs #25532 to fix a regression in Django 1.10.
This reintroduces a crash for disabled forms.JSONField (refs #26949),
however, that issue is also present on Django 1.9.
Thanks Ryan Schave for the test.
|
|
Follow up to 67d984413c9540074e4fe6aa033081a35cf192bc.
|