Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fixed #34338 -- Allowed customizing code of ValidationError in ↵ | Xavier Fernandez | 2023-02-23 | 1 | -11/+51 |
| | | | | BaseConstraint and subclasses. | ||||
* | Refs #33829 -- Added violation_error_message to constraints' __repr__(). | Xavier Fernandez | 2023-02-23 | 1 | -2/+14 |
| | |||||
* | Fixed #34355 -- Deprecated passing positional arguments to BaseConstraint. | Xavier Fernandez | 2023-02-22 | 1 | -3/+24 |
| | |||||
* | Fixed #34291 -- Fixed Meta.constraints validation crash on UniqueConstraint ↵ | Mariusz Felisiak | 2023-01-26 | 1 | -5/+7 |
| | | | | | | | with ordered expressions. Thanks Dan F for the report. Bug in 667105877e6723c6985399803a364848891513cc. | ||||
* | Refs #34233 -- Used types.NoneType. | Nick Pope | 2023-01-18 | 1 | -3/+4 |
| | | | Available since Python 3.10 where it was reintroduced. | ||||
* | Replaced Expression.replace_references() with .replace_expressions(). | Simon Charette | 2022-08-11 | 1 | -4/+7 |
| | | | | | | | The latter allows for more generic use cases beyond the currently limited ones constraints validation has. Refs #28333, #30581. | ||||
* | Fixed #33902 -- Fixed Meta.constraints validation crash with F() expressions. | Mariusz Felisiak | 2022-08-09 | 1 | -3/+6 |
| | | | | | Thanks Adam Zahradník for the report. Bug in 667105877e6723c6985399803a364848891513cc. | ||||
* | Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle ↵ | Stéphane "Twidi" Angel | 2022-07-08 | 1 | -3/+17 |
| | | | | | | violation_error_message. Regression in 667105877e6723c6985399803a364848891513cc. | ||||
* | Fixed #30581 -- Added support for Meta.constraints validation. | Gagaro | 2022-05-10 | 1 | -5/+87 |
| | | | | Thanks Simon Charette, Keryn Knight, and Mariusz Felisiak for reviews. | ||||
* | Made BaseConstraint importable from django.db.models. | Gagaro | 2022-03-16 | 1 | -1/+1 |
| | |||||
* | Refs #33476 -- Reformatted code with Black. | django-bot | 2022-02-07 | 1 | -69/+82 |
| | |||||
* | Refs #33476 -- Refactored problematic code before reformatting by Black. | Mariusz Felisiak | 2022-02-03 | 1 | -2/+1 |
| | | | | | | | | | | | | | | | | | In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], ) | ||||
* | Refs #32074 -- Used Enum.repr() format proposed for Python 3.10. | Mariusz Felisiak | 2021-07-12 | 1 | -5/+3 |
| | | | | | | | | | The Python's Steering Council decided to revert changes in the Enum module (see https://bugs.python.org/issue44559) and moved them to Python 3.11. Follow up to 5d9b065d3f93de056588dfee6f1776294dd8bab2. Thanks Nick Pope for the review. | ||||
* | Refs #32779 -- Changed ↵ | Hannes Ljungberg | 2021-05-28 | 1 | -2/+2 |
| | | | | DatabaseSchemaEditor._unique_sql()/_create_unique_sql() to take fields as second parameter. | ||||
* | Refs #32074 -- Backported Enum.__repr__() from Python 3.10. | Mariusz Felisiak | 2021-04-07 | 1 | -1/+7 |
| | | | | | | Enum.__repr__() was changed in [1], we should use the same format in Python < 3.10. [1] https://bugs.python.org/issue40066 | ||||
* | Fixed #30916 -- Added support for functional unique constraints. | Hannes Ljungberg | 2021-02-23 | 1 | -14/+64 |
| | | | | Thanks Ian Foote and Mariusz Felisiak for reviews. | ||||
* | Fixed #32458 -- Made __repr__() for Index and BaseConstraint subclasses more ↵ | Hannes Ljungberg | 2021-02-19 | 1 | -3/+9 |
| | | | | consistent. | ||||
* | Fixed #31745 -- Added error messages when using ↵ | Hannes Ljungberg | 2020-06-29 | 1 | -0/+8 |
| | | | | UniqueConstraint.include/opclasses with deferrable. | ||||
* | Fixed #31702 -- Added support for PostgreSQL opclasses in UniqueConstraint. | Hannes Ljungberg | 2020-06-16 | 1 | -4/+27 |
| | |||||
* | Fixed #30913 -- Added support for covering indexes on PostgreSQL 11+. | Hannes Ljungberg | 2020-06-04 | 1 | -5/+16 |
| | |||||
* | Fixed #20581 -- Added support for deferrable unique constraints. | Ian Foote | 2020-04-30 | 1 | -7/+35 |
| | |||||
* | Fixed #30484 -- Added conditional expressions support to CheckConstraint. | Simon Charette | 2019-11-21 | 1 | -0/+5 |
| | |||||
* | Refs #11964 -- Removed SimpleCol in favor of Query(alias_cols). | Simon Charette | 2019-11-21 | 1 | -2/+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 | -11/+10 |
| | | | | | | | | | 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 #30062 -- Added support for unique conditional constraints. | Paveł Tyślacki | 2019-01-12 | 1 | -6/+28 |
| | |||||
* | Fixed #30060 -- Moved SQL generation for indexes and constraints to ↵ | Paveł Tyślacki | 2019-01-01 | 1 | -32/+25 |
| | | | | SchemaEditor. | ||||
* | Fixed #29641 -- Added support for unique constraints in Meta.constraints. | Simon Charette | 2018-11-13 | 1 | -1/+37 |
| | | | | | | | This constraint is similar to Meta.unique_together but also allows specifying a name. Co-authored-by: Ian Foote <python@ian.feete.org> | ||||
* | Refs #29641 -- Refactored database schema constraint creation. | Simon Charette | 2018-11-13 | 1 | -8/+11 |
| | | | | | | | | | Added a test for constraint names in the database. Updated SQLite introspection to use sqlparse to allow reading the constraint name for table check and unique constraints. Co-authored-by: Ian Foote <python@ian.feete.org> | ||||
* | Refs #29641 -- Extracted reusable CheckConstraint logic into a base class. | Simon Charette | 2018-10-02 | 1 | -20/+33 |
| | |||||
* | Refs #11964 -- Changed CheckConstraint() signature to use keyword-only ↵ | Simon Charette | 2018-10-02 | 1 | -6/+6 |
| | | | | | | | arguments. Also renamed the `constraint` argument to `check` to better represent which part of the constraint the provided `Q` object represents. | ||||
* | Fixed #11964 -- Added support for database check constraints. | Ian Foote | 2018-07-10 | 1 | -0/+54 |