| Age | Commit message (Collapse) | Author |
|
|
|
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().
|
|
|
|
|
|
|
|
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.
|
|
http://bugs.python.org/issue27364
|
|
|
|
|
|
|
|
|
|
|
|
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.
|