summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/constraints.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #34338 -- Allowed customizing code of ValidationError in ↵Xavier Fernandez2023-02-231-4/+19
| | | | BaseConstraint and subclasses.
* Refs #33829 -- Added violation_error_message to constraints' __repr__().Xavier Fernandez2023-02-231-1/+7
|
* Refs #34233 -- Used types.NoneType.Nick Pope2023-01-181-3/+5
| | | Available since Python 3.10 where it was reintroduced.
* Refs #33342 -- Removed ExclusionConstraint.opclasses per deprecation timeline.Mariusz Felisiak2023-01-171-30/+1
|
* Fixed #34149 -- Allowed adding deferrable conditional exclusion constraints ↵Márton Salomváry2022-11-101-2/+0
| | | | on PostgreSQL.
* Replaced Expression.replace_references() with .replace_expressions().Simon Charette2022-08-111-1/+2
| | | | | | | The latter allows for more generic use cases beyond the currently limited ones constraints validation has. Refs #28333, #30581.
* Optimized ExclusionConstraint.validate() a bit.Mariusz Felisiak2022-08-111-8/+7
| | | | | References to excluded fields are omitted in the replacement_map, so there is no need to replace references before checking for exclusions.
* Used F.replace_references().Mariusz Felisiak2022-08-111-1/+1
| | | | Follow up to 63884829acd207404f2a5c3cc1d6b4cd0a822b70.
* Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle ↵Stéphane "Twidi" Angel2022-07-081-0/+1
| | | | | | violation_error_message. Regression in 667105877e6723c6985399803a364848891513cc.
* Fixed #33717 -- Dropped support for PostgreSQL 11.Mariusz Felisiak2022-05-191-9/+0
|
* Fixed #30581 -- Added support for Meta.constraints validation.Gagaro2022-05-101-3/+47
| | | | Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews.
* Made BaseConstraint importable from django.db.models.Gagaro2022-03-161-2/+1
|
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-1/+4
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-65/+67
|
* Refs #33342 -- Deprecated ExclusionConstraint.opclasses.Hannes Ljungberg2021-12-271-0/+11
|
* Fixed #33342 -- Added support for using OpClass() in exclusion constraints.Hannes Ljungberg2021-12-241-22/+26
|
* Refs #32943 -- Added support for covering exclusion constraints using ↵Nick Pope2021-10-011-6/+16
| | | | SP-GiST indexes on PostgreSQL 14+.
* Fixed typo in exception message for GiST indexes and exclusion constraints.Nick Pope2021-10-011-1/+1
|
* Fixed #32858 -- Fixed ExclusionConstraint crash with index transforms in ↵Lucidiot2021-06-221-0/+3
| | | | expressions.
* Refs #32074 -- Made ExclusionConstraint.__repr__() use Deferrable.__repr__().Mariusz Felisiak2021-04-071-1/+1
| | | Follow up to c6859f1a684edec7bb33038b4408046a4db0c16d.
* Fixed #32458 -- Made __repr__() for Index and BaseConstraint subclasses more ↵Hannes Ljungberg2021-02-191-7/+8
| | | | consistent.
* Refs #32096 -- Fixed ExclusionConstraint crash with JSONField key transforms ↵Mariusz Felisiak2020-10-141-1/+1
| | | | | | in expressions. Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd.
* Fixed #31902 -- Fixed crash of ExclusionConstraint on expressions with params.Maxim Petrov2020-08-191-4/+5
|
* Fixed #31709 -- Added support for opclasses in ExclusionConstraint.Hannes Ljungberg2020-06-161-4/+25
|
* Fixed #31649 -- Added support for covering exclusion constraints on ↵Hannes Ljungberg2020-06-121-4/+27
| | | | PostgreSQL 12+.
* Fixed #31455 -- Added support for deferrable exclusion constraints on ↵Ian Foote2020-05-011-5/+22
| | | | PostgreSQL.
* Refs #11964 -- Removed SimpleCol in favor of Query(alias_cols).Simon Charette2019-11-211-5/+2
| | | | | | This prevent having to pass simple_col through multiple function calls by defining whether or not references should be resolved with aliases at the Query level.
* Fixed #30651 -- Made __eq__() methods return NotImplemented for not ↵ElizabethU2019-10-011-7/+8
| | | | | | | | | implemented comparisons. Changed __eq__ to return NotImplemented instead of False if compared to an object of the same type, as is recommended by the Python data model reference. Now these models can be compared to ANY (or other objects with __eq__ overwritten) without returning False automatically.
* Fixed #29824 -- Added support for database exclusion constraints on PostgreSQL.Mads Jensen2019-07-161-0/+106
Thanks to Nick Pope and Mariusz Felisiak for review. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>