summaryrefslogtreecommitdiff
path: root/django/db/models/constraints.py
AgeCommit message (Expand)Author
2026-04-22Fixed #37057 -- Adjusted UniqueConstraint handling of UNKNOWN condition.Simon Charette
2025-12-19Fixed #36808 -- Required name argument in UniqueConstraint signature.Jonathan Biemond
2025-12-16Fixed #36594 -- Improved UniqueConstraint's nulls_distinct system check message.Mridul Dhall
2025-11-13Fixed #36730 -- Fixed constraint validation crash for excluded FK attnames.Adam Johnson
2025-07-23Refs #36500 -- Rewrapped long docstrings and block comments via a script.django-bot
2025-03-31Refs #28909 -- Simplified code using unpacking generalizations.Aarni Koskela
2025-03-10Used _expression_refs_exclude() hook in CheckConstraint/UniqueConstraint.vali...Mariusz Felisiak
2025-02-19Fixed #35358, Refs #35234 -- Renamed _check() methods to check() for constrai...Mariusz Felisiak
2025-01-15Refs #35234 -- Removed CheckConstraint.check per deprecation timeline.Sarah Boyce
2025-01-15Refs #34355 -- Removed support for positional arguments in BaseConstraint per...Sarah Boyce
2024-12-17Fixed #35992, Fixed #35997 -- Added system check for CompositePrimaryKeys in ...Mariusz Felisiak
2024-11-28Fixed #35038 -- Created AlterConstraint operation.Salvo Polizzi
2024-10-10Fixed #35103 -- Used provided error code and message when fields is set witho...gabn88
2024-09-09Refs #373 -- Added Model._is_pk_set() abstraction to check if a Model's PK is...Csirmaz Bendegúz
2024-08-12Fixed #35575 -- Added support for constraint validation on GeneratedFields.Mark Gensler
2024-08-05Refs #35638 -- Avoided wrapping expressions with Value in _get_field_value_ma...David Sanders
2024-07-17Fixed #35594 -- Added unique nulls distinct validation for expressions.Simon Charette
2024-07-17Refs #30581 -- Made unattached UniqueConstraint(fields) validation testable.Simon Charette
2024-05-14Fixed #35275 -- Fixed Meta.constraints validation crash on UniqueConstraint w...Mariusz Felisiak
2024-03-30Refs #35234 -- Skipped CheckConstraint system checks if not supported.Mariusz Felisiak
2024-03-01Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition.Simon Charette
2024-02-29Refs #35234 -- Moved constraint system checks to Check/UniqueConstraint methods.Simon Charette
2023-07-19Made UniqueConstraint raise TypeError for type violations.Simon Charette
2023-07-19Fixed #34701 -- Added support for NULLS [NOT] DISTINCT on PostgreSQL 15+.Simon Charette
2023-02-23Fixed #34338 -- Allowed customizing code of ValidationError in BaseConstraint...Xavier Fernandez
2023-02-23Refs #33829 -- Added violation_error_message to constraints' __repr__().Xavier Fernandez
2023-02-22Fixed #34355 -- Deprecated passing positional arguments to BaseConstraint.Xavier Fernandez
2023-01-26Fixed #34291 -- Fixed Meta.constraints validation crash on UniqueConstraint w...Mariusz Felisiak
2023-01-18Refs #34233 -- Used types.NoneType.Nick Pope
2022-08-11Replaced Expression.replace_references() with .replace_expressions().Simon Charette
2022-08-09Fixed #33902 -- Fixed Meta.constraints validation crash with F() expressions.Mariusz Felisiak
2022-07-08Fixed #33829 -- Made BaseConstraint.deconstruct() and equality handle violati...Stéphane "Twidi" Angel
2022-05-10Fixed #30581 -- Added support for Meta.constraints validation.Gagaro
2022-03-16Made BaseConstraint importable from django.db.models.Gagaro
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2022-02-03Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak
2021-07-12Refs #32074 -- Used Enum.repr() format proposed for Python 3.10.Mariusz Felisiak
2021-05-28Refs #32779 -- Changed DatabaseSchemaEditor._unique_sql()/_create_unique_sql(...Hannes Ljungberg
2021-04-07Refs #32074 -- Backported Enum.__repr__() from Python 3.10.Mariusz Felisiak
2021-02-23Fixed #30916 -- Added support for functional unique constraints.Hannes Ljungberg
2021-02-19Fixed #32458 -- Made __repr__() for Index and BaseConstraint subclasses more ...Hannes Ljungberg
2020-06-29Fixed #31745 -- Added error messages when using UniqueConstraint.include/opcl...Hannes Ljungberg
2020-06-16Fixed #31702 -- Added support for PostgreSQL opclasses in UniqueConstraint.Hannes Ljungberg
2020-06-04Fixed #30913 -- Added support for covering indexes on PostgreSQL 11+.Hannes Ljungberg
2020-04-30Fixed #20581 -- Added support for deferrable unique constraints.Ian Foote
2019-11-21Fixed #30484 -- Added conditional expressions support to CheckConstraint.Simon Charette
2019-11-21Refs #11964 -- Removed SimpleCol in favor of Query(alias_cols).Simon Charette
2019-10-01Fixed #30651 -- Made __eq__() methods return NotImplemented for not implement...ElizabethU
2019-01-12Fixed #30062 -- Added support for unique conditional constraints.Paveł Tyślacki
2019-01-01Fixed #30060 -- Moved SQL generation for indexes and constraints to SchemaEdi...Paveł Tyślacki