Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #34338 -- Allowed customizing code of ValidationError in ↵ | Xavier Fernandez | 2023-02-23 | 1 | -4/+19 |
| | | | | BaseConstraint and subclasses. | ||||
* | Refs #33829 -- Added violation_error_message to constraints' __repr__(). | Xavier Fernandez | 2023-02-23 | 1 | -1/+7 |
| | |||||
* | Refs #34233 -- Used types.NoneType. | Nick Pope | 2023-01-18 | 1 | -3/+5 |
| | | | Available since Python 3.10 where it was reintroduced. | ||||
* | Refs #33342 -- Removed ExclusionConstraint.opclasses per deprecation timeline. | Mariusz Felisiak | 2023-01-17 | 1 | -30/+1 |
| | |||||
* | Fixed #34149 -- Allowed adding deferrable conditional exclusion constraints ↵ | Márton Salomváry | 2022-11-10 | 1 | -2/+0 |
| | | | | on PostgreSQL. | ||||
* | Replaced Expression.replace_references() with .replace_expressions(). | Simon Charette | 2022-08-11 | 1 | -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 Felisiak | 2022-08-11 | 1 | -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 Felisiak | 2022-08-11 | 1 | -1/+1 |
| | | | | Follow up to 63884829acd207404f2a5c3cc1d6b4cd0a822b70. | ||||
* | Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle ↵ | Stéphane "Twidi" Angel | 2022-07-08 | 1 | -0/+1 |
| | | | | | | violation_error_message. Regression in 667105877e6723c6985399803a364848891513cc. | ||||
* | Fixed #33717 -- Dropped support for PostgreSQL 11. | Mariusz Felisiak | 2022-05-19 | 1 | -9/+0 |
| | |||||
* | Fixed #30581 -- Added support for Meta.constraints validation. | Gagaro | 2022-05-10 | 1 | -3/+47 |
| | | | | Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews. | ||||
* | Made BaseConstraint importable from django.db.models. | Gagaro | 2022-03-16 | 1 | -2/+1 |
| | |||||
* | Refs #33476 -- Refactored code to strictly match 88 characters line length. | Mariusz Felisiak | 2022-02-07 | 1 | -1/+4 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -65/+67 |
| | |||||
* | Refs #33342 -- Deprecated ExclusionConstraint.opclasses. | Hannes Ljungberg | 2021-12-27 | 1 | -0/+11 |
| | |||||
* | Fixed #33342 -- Added support for using OpClass() in exclusion constraints. | Hannes Ljungberg | 2021-12-24 | 1 | -22/+26 |
| | |||||
* | Refs #32943 -- Added support for covering exclusion constraints using ↵ | Nick Pope | 2021-10-01 | 1 | -6/+16 |
| | | | | SP-GiST indexes on PostgreSQL 14+. | ||||
* | Fixed typo in exception message for GiST indexes and exclusion constraints. | Nick Pope | 2021-10-01 | 1 | -1/+1 |
| | |||||
* | Fixed #32858 -- Fixed ExclusionConstraint crash with index transforms in ↵ | Lucidiot | 2021-06-22 | 1 | -0/+3 |
| | | | | expressions. | ||||
* | Refs #32074 -- Made ExclusionConstraint.__repr__() use Deferrable.__repr__(). | Mariusz Felisiak | 2021-04-07 | 1 | -1/+1 |
| | | | Follow up to c6859f1a684edec7bb33038b4408046a4db0c16d. | ||||
* | Fixed #32458 -- Made __repr__() for Index and BaseConstraint subclasses more ↵ | Hannes Ljungberg | 2021-02-19 | 1 | -7/+8 |
| | | | | consistent. | ||||
* | Refs #32096 -- Fixed ExclusionConstraint crash with JSONField key transforms ↵ | Mariusz Felisiak | 2020-10-14 | 1 | -1/+1 |
| | | | | | | in expressions. Regression in 6789ded0a6ab797f0dcdfa6ad5d1cfa46e23abcd. | ||||
* | Fixed #31902 -- Fixed crash of ExclusionConstraint on expressions with params. | Maxim Petrov | 2020-08-19 | 1 | -4/+5 |
| | |||||
* | Fixed #31709 -- Added support for opclasses in ExclusionConstraint. | Hannes Ljungberg | 2020-06-16 | 1 | -4/+25 |
| | |||||
* | Fixed #31649 -- Added support for covering exclusion constraints on ↵ | Hannes Ljungberg | 2020-06-12 | 1 | -4/+27 |
| | | | | PostgreSQL 12+. | ||||
* | Fixed #31455 -- Added support for deferrable exclusion constraints on ↵ | Ian Foote | 2020-05-01 | 1 | -5/+22 |
| | | | | PostgreSQL. | ||||
* | Refs #11964 -- Removed SimpleCol in favor of Query(alias_cols). | Simon Charette | 2019-11-21 | 1 | -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 ↵ | ElizabethU | 2019-10-01 | 1 | -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 Jensen | 2019-07-16 | 1 | -0/+106 |
Thanks to Nick Pope and Mariusz Felisiak for review. Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com> |