Skip to content

Commit 8c92869

Browse files
committed
Point out that Django now supports ConditionalUniqueIndex
1 parent 3140935 commit 8c92869

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/source/indexes.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ Conditional Unique Index
3535
The :class:`~psqlextra.indexes.ConditionalUniqueIndex` lets you create partial unique indexes in case you ever need :attr:`~django:django.db.models.Options.unique_together` constraints
3636
on nullable columns.
3737

38+
.. warning::
39+
40+
In Django 3.1 or newer, you might want to use :attr:`~django.db.models.indexes.condition` instead.
41+
3842
Before:
3943

4044
.. code-block:: python

0 commit comments

Comments
 (0)