| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2024-08-05 | Fixed #35638 -- Updated validate_constraints to consider db_default. | David Sanders | |
| 2024-07-17 | Refs #34701 -- Moved UniqueConstraint(nulls_distinct) validation tests. | Simon Charette | |
| The original tests required the creation of a model that is no longer necessary and were exercising Model.full_clean(validate_constraints) which has nothing to do with the nulls_distinct feature. | |||
| 2024-03-01 | Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. | Simon Charette | |
| Once the deprecation period ends CheckConstraint.check() can become the documented method that performs system checks for BaseConstraint subclasses. | |||
| 2023-07-19 | Fixed #34701 -- Added support for NULLS [NOT] DISTINCT on PostgreSQL 15+. | Simon Charette | |
| 2022-05-10 | Fixed #30581 -- Added support for Meta.constraints validation. | Gagaro | |
| Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-12-06 | Fixed #33335 -- Made model validation ignore functional unique constraints. | Hannes Ljungberg | |
| Regression in 3aa545281e0c0f9fac93753e3769df9e0334dbaa. Thanks Hervé Le Roy for the report. | |||
| 2021-07-15 | Refs #32508 -- Raised Type/ValueError instead of using "assert" in ↵ | Daniyal | |
| django.db.models. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> | |||
| 2020-06-25 | Fixed #31596 -- Changed ForeignKey.validate() to use the base manager. | Jon Dufresne | |
| 2020-04-15 | Removed unused __str__() methods in tests models. | Author: Mads Jensen | |
| Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-Authored-By: Hasan Ramezani <hasan.r67@gmail.com> | |||
| 2019-08-20 | Fixed #29979, Refs #17337 -- Extracted AutoField field logic into a mixin ↵ | Nick Pope | |
| and refactored AutoFields. This reduces duplication by allowing AutoField, BigAutoField and SmallAutoField to inherit from IntegerField, BigIntegerField and SmallIntegerField respectively. Doing so also allows for enabling the max_length warning check and minimum/maximum value validation for auto fields, as well as providing a mixin that can be used for other possible future auto field types such as a theoretical UUIDAutoField. | |||
| 2018-03-03 | Added model name to AutoField error message. | Almad | |
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-18 | Refs #23919 -- Removed python_2_unicode_compatible decorator usage | Claude Paroz | |
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-04-22 | Fixed #26528 -- Allowed any iterable (e.g. tuple) as validators kwarg for ↵ | Loïc Bistuer | |
| form/model fields. | |||
| 2016-04-08 | Fixed E128 flake8 warnings in tests/. | Tim Graham | |
| 2015-07-27 | Fixed #21127 -- Started deprecation toward requiring on_delete for ↵ | Flavio Curella | |
| ForeignKey/OneToOneField | |||
| 2014-07-02 | Fixed #22935 -- Changed ForeignKey.default_error_messages['invalid'] to ↵ | Anubhav Joshi | |
| refer to correct field. Thanks Tim Graham for suggestion and review. | |||
| 2013-11-02 | Fixing E302 Errors | Jason Myers | |
| Signed-off-by: Jason Myers <jason@jasonamyers.com> | |||
| 2013-10-22 | Fixed E221 pep8 warnings. | Tim Graham | |
| 2013-06-13 | Fixed #20594 -- Add validation to models.SlugField. | Baptiste Mispelon | |
| Thanks carbonXT for the report. | |||
| 2013-05-28 | Fixed #20484 -- Added model validation for GenericIPAddressField | Tim Graham | |
| GenericIPAddressField must not allow blank for NOT NULL fields Thanks Erik Romijn. | |||
| 2013-02-26 | Merged regressiontests and modeltests into the test root. | Florian Apolloner | |
