summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-01-07 17:54:30 +0100
committerClaude Paroz <claude@2xlibre.net>2013-01-07 21:02:02 +0100
commit012229914cb1391ee4fcb6c183a341a6491cd377 (patch)
tree5af81ef9ef5f3586daccfa5e6e6ffc853e7603c5 /docs
parent7ca9b7162830218c299aa1132bca9781ce1e4e90 (diff)
[1.5.x] Created special PostgreSQL text indexes when unique is True
Refs #19441. Backport of c698c55966 from master.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/fields.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/ref/models/fields.txt b/docs/ref/models/fields.txt
index a2081e05f4..c6a23dbcb5 100644
--- a/docs/ref/models/fields.txt
+++ b/docs/ref/models/fields.txt
@@ -272,6 +272,9 @@ field, a :exc:`django.db.IntegrityError` will be raised by the model's
This option is valid on all field types except :class:`ManyToManyField` and
:class:`FileField`.
+Note that when ``unique`` is ``True``, you don't need to specify
+:attr:`~Field.db_index`, because ``unique`` implies the creation of an index.
+
``unique_for_date``
-------------------