mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-03-05 06:34:16 +08:00
Adjust Postgres indexes for Django 3.2 (#616)
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
from django.db import models
|
||||
from django.db.models.functions import Lower
|
||||
models.Index(fields=["foo"])
|
||||
models.Index(models.F("bar"), name="test")
|
||||
models.Index("foo", models.F("bar"), Lower("baz"), name="test")
|
||||
models.Index("foo", name="test", opclasses=["bar"])
|
||||
models.Index("foo", name="test", condition=models.Q(foo=1))
|
||||
|
||||
Reference in New Issue
Block a user