François Freitag
|
9ef4a18dbe
Changed django.forms.ValidationError imports to django.core.exceptions.ValidationError.
|
5 anni fa |
Hasan Ramezani
|
da79ee472d
Fixed #26813 -- Prevented empty choice in ModelChoiceField with RadioSelect for fields with blank=False.
|
5 anni fa |
Jon Dufresne
|
67ea35df52
Fixed #30998 -- Added ModelChoiceIteratorValue to pass the model instance to ChoiceWidget.create_option().
|
5 anni fa |
Jon Dufresne
|
8d087f9a17
Fixed typo in ModelChoiceFieldTests.
|
5 anni fa |
Etienne Chové
|
e7cdb0cd7e
Fixed #30014 -- Fixed ModelChoiceField validation when initial value is a model instance.
|
6 anni fa |
Etienne Chové
|
a12f9cd95a
Added ModelChoiceField test for validation with to_field_name.
|
5 anni fa |
François Freitag
|
d1413c5d70
Refs #28312 -- Added an optimized __bool__() to ModelChoiceIterator.
|
7 anni fa |
François Freitag
|
3fca95e1ad
Fixed #28312 -- Made ModelChoiceIterator.__len__() more memory-efficient.
|
7 anni fa |
François Freitag
|
a2e97abd81
Fixed #29159 -- Made ModelChoiceIterator reuse QuerySet result cache.
|
7 anni fa |
François Freitag
|
40f0aa9885
Fixed #29158 -- Fixed len(choices) crash if ModelChoiceField's queryset is a manager.
|
7 anni fa |
François Freitag
|
06172d7bc2
Consolidated ModelChoiceField tests.
|
7 anni fa |