mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-07 12:44:38 +08:00
[3.2] Adjust model indexes (#587)
This commit is contained in:
1 parent
e72cbb6eb5
commit
e8a97e301c
2 files changed
+18
-3
No files matched your search
@@ -0,0 +1,10 @@
|
||||
- case: model_index
|
||||
main: |
|
||||
from django.db import models
|
||||
from django.db.models.functions import Lower
|
||||
models.Index(fields=["foo"])
|
||||
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))
|
||||
models.Index("foo", name="test", include=["bar"])
|
||||
|
||||
Reference in new issue
Block a user