mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Created special PostgreSQL text indexes when unique is True
Refs #19441.
This commit is contained in:
parent
a890469d3b
commit
c698c55966
3 changed files with 5 additions and 2 deletions
|
@ -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``
|
||||
-------------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue