mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
[5.1.x] Fixed pronoun disagreement in docs/ref/models/querysets.txt.
Backport of ef6a83789b from main.
This commit is contained in:
committed by
Sarah Boyce
parent
67fc5805db
commit
8cb8820fbf
@@ -2340,9 +2340,9 @@ whenever a request to a page has a side effect on your data. For more, see
|
|||||||
# Raises IntegrityError
|
# Raises IntegrityError
|
||||||
|
|
||||||
This is happening because it's trying to get or create "Chapter 1" through the
|
This is happening because it's trying to get or create "Chapter 1" through the
|
||||||
book "Ulysses", but it can't do any of them: the relation can't fetch that
|
book "Ulysses", but it can't do either: the relation can't fetch that chapter
|
||||||
chapter because it isn't related to that book, but it can't create it either
|
because it isn't related to that book, but it can't create it either because
|
||||||
because ``title`` field should be unique.
|
``title`` field should be unique.
|
||||||
|
|
||||||
``update_or_create()``
|
``update_or_create()``
|
||||||
~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
Reference in New Issue
Block a user