| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-08-08 | Fixed #31721 -- Allowed ModelForm meta to specify form fields. | Kamil Turek | |
| 2022-07-31 | Fixed warnings per flake8 5.0.0. | Mariusz Felisiak | |
| 2022-05-17 | Refs #32339 -- Deprecated default.html form template. | David Smith | |
| Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es> | |||
| 2022-04-14 | Relaxed some query ordering assertions in various tests. | Mariusz Felisiak | |
| It accounts for differences seen on MySQL with MyISAM storage engine. | |||
| 2022-04-13 | Fixed #33627 -- Improved nonexistent pk in ↵ | SanderBeekhuis | |
| ModelMultipleChoiceFieldTests.test_model_multiple_choice_field(). | |||
| 2022-02-22 | Removed redundant QuerySet.all() calls in docs and tests. | Nick Pope | |
| Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager. | |||
| 2022-02-07 | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | |
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2022-01-22 | Stopped including type="text/css" attributes for CSS link tags. | Claude Paroz | |
| 2021-12-09 | Refs #32338 -- Added Boundfield.legend_tag(). | David Smith | |
| 2021-09-09 | Fixed #33084 -- Removed incorrect system check for ManyToManyField with ↵ | Hasan Ramezani | |
| limit_choices_to. | |||
| 2020-11-06 | Fixed #31235 -- Made assertQuerysetEqual() compare querysets directly. | Hasan Ramezani | |
| This also replaces assertQuerysetEqual() to assertSequenceEqual()/assertCountEqual() where appropriate. Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com> Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-10-27 | Fixed #1891, Fixed #11707 -- Prevented duplicates with limit_choices_to on ↵ | alvinshaita | |
| multi-value relations. | |||
| 2020-09-25 | Refs #28009 -- Added empty_value tests for CharField subclasses. | David Smith | |
| 2020-07-30 | Bumped minimum isort version to 5.1.0. | David Smith | |
| Fixed inner imports per isort 5. isort 5.0.0 to 5.1.0 was unstable. | |||
| 2020-06-26 | Fixed test_clean_does_deduplicate_values on Oracle after ↵ | Mariusz Felisiak | |
| e13cfc6dfd4212ef7a40db1a41d3ae6ac4b97de0. | |||
| 2020-06-25 | Fixed #31596 -- Changed ForeignKey.validate() to use the base manager. | Jon Dufresne | |
| 2020-05-18 | Used assertIs(…, True) in model_forms.tests.ValidationTest. | Jon Dufresne | |
| 2020-04-28 | Changed django.forms.ValidationError imports to ↵ | François Freitag | |
| django.core.exceptions.ValidationError. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-02-05 | Fixed #26813 -- Prevented empty choice in ModelChoiceField with RadioSelect ↵ | Hasan Ramezani | |
| for fields with blank=False. | |||
| 2020-02-05 | Refs #26813 -- Added test for ModelChoiceField.choices when using ↵ | Mariusz Felisiak | |
| RadioSelect widget. | |||
| 2019-12-11 | Fixed #31080 -- Removed redundant type="text/javascript" attribute from ↵ | Jon Dufresne | |
| <script> tags. | |||
| 2019-06-28 | Fixed #30400 -- Improved typography of user facing strings. | Jon Dufresne | |
| Thanks Claude Paroz for assistance with translations. | |||
| 2019-06-04 | Fixed #30534 -- Fixed overriding a field's default in ModelForm.cleaned_data(). | RobertAKARobin | |
| 2019-04-25 | Fixed #30399 -- Changed django.utils.html.escape()/urlize() to use ↵ | Jon Dufresne | |
| html.escape()/unescape(). | |||
| 2019-04-03 | Fixed #30302 -- Fixed forms.model_to_dict() result if empty list of fields ↵ | belegnar | |
| is passed. | |||
| 2019-04-03 | Refs #30302 -- Added more tests for forms.model_to_dict(). | belegnar | |
| 2019-01-02 | Used 4 space hanging indent for dictionaries. | Tim Graham | |
| Thanks Mariusz Felisiak for auditing. | |||
| 2018-11-27 | Switched setUp() to setUpTestData() where possible in Django's tests. | Simon Charette | |
| 2018-11-27 | Switched TestCase to SimpleTestCase where possible in Django's tests. | Tim Graham | |
| 2018-07-25 | Refs #13091 -- Added test for commit=False idiom with partial ↵ | Carlton Gibson | |
| unique_together validation. | |||
| 2018-04-23 | Fixed #28312 -- Made ModelChoiceIterator.__len__() more memory-efficient. | François Freitag | |
| 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. | |||
| 2018-03-31 | Fixed #29279 -- Added renderer argument to ModelForm. | Dan Watson | |
| 2018-03-16 | Fixed hanging indentation in various code. | Mariusz Felisiak | |
| 2018-03-01 | Fixed #29158 -- Fixed len(choices) crash if ModelChoiceField's queryset is a ↵ | François Freitag | |
| manager. Removing all() in __iter__() prevents a duplicate query when choices are cast to a list and there's a prefetch_related(). | |||
| 2018-03-01 | Consolidated ModelChoiceField tests. | François Freitag | |
| 2018-02-28 | Eliminated the need to modify a model forms test when new test files are added. | Tim Graham | |
| 2018-01-21 | Fixed #29038 -- Removed closing slash from HTML void tags. | Jon Dufresne | |
| 2018-01-20 | Fixed #29041 -- Changed SelectMultiple's multiple attribute to HTML5 boolean ↵ | Jon Dufresne | |
| syntax. | |||
| 2017-08-31 | Fixed #28543 -- Prevented ManyToManyField.value_from_object() from being lazy. | Tim Graham | |
| 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. | |||
| 2017-07-29 | Used assertRaisesMessage() to test Django's error messages. | Mads Jensen | |
| 2017-07-14 | Fixed #28387 -- Fixed has_changed() for disabled form fields that subclass it. | Srinivas Reddy Thatiparthy | |
| 2017-06-30 | Fixed #28345 -- Applied limit_choices_to during ModelForm.__init__(). | Jon Dufresne | |
| 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. | |||
| 2017-06-10 | Refs #23919 -- Replaced stray super(ClassName, self) with super(). | Tom | |
| 2017-06-01 | Fixed #28242 -- Moved ImageField file extension validation to the form field. | Manatsawin Hanmongkolchai | |
| 2017-05-27 | Fixed #28249 -- Removed unnecessary dict.keys() calls. | Jon Dufresne | |
| iter(dict) is equivalent to iter(dict.keys()). | |||
| 2017-03-31 | Fixed #27993 -- Fixed model form default fallback for SelectMultiple. | heathervm | |
| 2017-03-22 | Fixed #27975 -- Fixed crash if ModelChoiceField's queryset=None. | James Beith | |
| Regression in 9153d8fbd6385db9f48793662de789fc3d686841. | |||
| 2017-03-16 | Fixed nondeterministic ordering test failure in model_forms. | Mariusz Felisiak | |
| 2017-03-15 | Refs #27563 -- Fixed ModelChoiceField.__deepcopy__() so forms don't share a ↵ | Tim Graham | |
| queryset cache. Thanks Luke Benstead for the report Simon Charettes for the fix. | |||
