Kaydet (Commit) bdf3863b authored tarafından Paveł Tyślacki's avatar Paveł Tyślacki Kaydeden (comit) Tim Graham

Fixed #30063 -- Doc'd that Meta.unique_together may be deprecated in favor of Meta.constraints.

üst b71e3d63
......@@ -404,6 +404,12 @@ Django quotes column and table names behind the scenes.
.. attribute:: Options.unique_together
.. admonition:: Use :class:`.UniqueConstraint` with the :attr:`~Options.constraints` option instead.
:class:`.UniqueConstraint` provides more functionality than
``unique_together``. ``unique_together`` may be deprecated in the
future.
Sets of field names that, taken together, must be unique::
unique_together = (("driver", "restaurant"),)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment