mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Refs #27236 -- Removed Meta.index_together per deprecation timeline.
This commit is contained in:
parent
00e1879610
commit
2abf417c81
25 changed files with 41 additions and 1308 deletions
|
@ -451,29 +451,6 @@ not be looking at your Django code. For example::
|
|||
The ``ValidationError`` raised during model validation when the constraint
|
||||
is violated has the ``unique_together`` error code.
|
||||
|
||||
``index_together``
|
||||
------------------
|
||||
|
||||
.. attribute:: Options.index_together
|
||||
|
||||
Sets of field names that, taken together, are indexed::
|
||||
|
||||
index_together = [
|
||||
["pub_date", "deadline"],
|
||||
]
|
||||
|
||||
This list of fields will be indexed together (i.e. the appropriate
|
||||
``CREATE INDEX`` statement will be issued.)
|
||||
|
||||
For convenience, ``index_together`` can be a single list when dealing with a single
|
||||
set of fields::
|
||||
|
||||
index_together = ["pub_date", "deadline"]
|
||||
|
||||
.. deprecated:: 4.2
|
||||
|
||||
Use the :attr:`~Options.indexes` option instead.
|
||||
|
||||
``constraints``
|
||||
---------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue