summaryrefslogtreecommitdiff
path: root/docs/ref
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2019-01-10 18:52:42 -0500
committerTim Graham <timograham@gmail.com>2019-01-10 18:52:42 -0500
commitcf1fe22009917f2d66e73d7fec70a9ebbb9631f9 (patch)
tree1321569df8eb1d563fdf495fb6b471d0752b3dbf /docs/ref
parent4b9d72210f0201efeafb9703e166aa3b38c04873 (diff)
Fixed typos in docs/ref/models/constraints.txt.
Diffstat (limited to 'docs/ref')
-rw-r--r--docs/ref/models/constraints.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/ref/models/constraints.txt b/docs/ref/models/constraints.txt
index 5c94ce094a..c92d2dde37 100644
--- a/docs/ref/models/constraints.txt
+++ b/docs/ref/models/constraints.txt
@@ -34,7 +34,7 @@ option.
A :class:`Q` object that specifies the check you want the constraint to
enforce.
-For example ``CheckConstraint(check=Q(age__gte=18), name='age_gte_18')``
+For example, ``CheckConstraint(check=Q(age__gte=18), name='age_gte_18')``
ensures the age field is never less than 18.
``name``
@@ -59,8 +59,9 @@ The name of the constraint.
A list of field names that specifies the unique set of columns you want the
constraint to enforce.
-For example ``UniqueConstraint(fields=['room', 'date'], name='unique_location')``
-ensures only one location can exist for each ``date``.
+For example, ``UniqueConstraint(fields=['room', 'date'],
+name='unique_booking')`` ensures each room can only be booked once for each
+date.
``name``
--------