Documented Meta.indexes a better option than Field.db_index
This commit is contained in:
parent
dab48b7482
commit
60507a339a
|
@ -332,6 +332,13 @@ scenes.
|
|||
|
||||
If ``True``, a database index will be created for this field.
|
||||
|
||||
.. admonition:: Use the :attr:`~Options.indexes` option instead.
|
||||
|
||||
Where possible, use the :attr:`Meta.indexes <Options.indexes>` option
|
||||
instead. In nearly all cases, :attr:`~Options.indexes` provides more
|
||||
functionality than ``db_index``. ``db_index`` may be deprecated in the
|
||||
future.
|
||||
|
||||
``db_tablespace``
|
||||
-----------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue