django/docs/ref/models
Simon Charette ab148c02ce Fixed #33579 -- Specialized exception raised on forced update failures.
Raising DatabaseError directly made it harder than it should to
differentiate between IntegrityError when a forced update resulted in no
affected rows.

Introducing a specialized exception allows for callers to more easily
silence, log, or turn them update failures into user facing exceptions
(e.g. 404s).

Thanks Mariusz for the review.
2025-03-10 21:09:15 +01:00
..
class.txt Fixed #33579 -- Specialized exception raised on forced update failures. 2025-03-10 21:09:15 +01:00
conditional-expressions.txt Fixed #31262 -- Added support for mappings on model fields and ChoiceField's choices. 2023-08-30 22:57:40 -03:00
constraints.txt Corrected wording in docs/ref/models/constraints.txt. 2025-02-14 15:19:12 +01:00
database-functions.txt Refs #36005 -- Used datetime.UTC alias instead of datetime.timezone.utc. 2025-02-18 08:35:36 +01:00
expressions.txt Fixed #35444 -- Added generic support for Aggregate.order_by. 2025-03-03 11:37:00 +01:00
fields.txt Fixed #36128 -- Clarified auto-generated unique constraint on m2m through models. 2025-03-04 13:06:09 +01:00
index.txt Generalized check constraint docs for other constraints. 2018-11-13 17:57:27 -05:00
indexes.txt Fixed #34761 -- Dropped support for MySQL < 8.0.11. 2023-08-03 18:54:29 +02:00
instances.txt Fixed #33579 -- Specialized exception raised on forced update failures. 2025-03-10 21:09:15 +01:00
lookups.txt Refs #22936 -- Doc'd Lookup.prepare_rhs. 2023-10-05 15:26:02 +02:00
meta.txt Fixed #36075 -- Documented how to introspect composite primary keys. 2025-01-14 16:20:17 +01:00
options.txt Refs #35234 -- Deprecated CheckConstraint.check in favor of .condition. 2024-03-01 07:15:32 +01:00
querysets.txt Fixed #36066 -- Documented that Q objects can be used directly in annotations. 2025-03-10 12:54:23 +01:00
relations.txt Removed versionadded/changed annotations for 4.2. 2023-09-18 22:12:40 +02:00