mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-05-16 21:45:05 +08:00
Add stub for OpClass (#617)
This commit is contained in:
@@ -16,3 +16,13 @@
|
||||
- index: GistIndex
|
||||
- index: HashIndex
|
||||
- index: SpGistIndex
|
||||
|
||||
- case: can_instantiate_opclass
|
||||
main: |
|
||||
from django.db.models import Index
|
||||
from django.db.models.functions import Lower
|
||||
from django.contrib.postgres.indexes import OpClass
|
||||
Index(
|
||||
OpClass(Lower('username'), name='varchar_pattern_ops'),
|
||||
name='lower_username_idx',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user