mirror of
https://github.com/django/django.git
synced 2025-07-24 05:36:15 +00:00
Fixed #26610 -- Added CITextField to contrib.postgres.
This commit is contained in:
parent
7eda99f03f
commit
094d630ae8
11 changed files with 110 additions and 10 deletions
|
@ -5,8 +5,8 @@ from django.db import migrations
|
|||
|
||||
try:
|
||||
from django.contrib.postgres.operations import (
|
||||
BtreeGinExtension, CreateExtension, HStoreExtension, TrigramExtension,
|
||||
UnaccentExtension,
|
||||
BtreeGinExtension, CITextExtension, CreateExtension, HStoreExtension,
|
||||
TrigramExtension, UnaccentExtension,
|
||||
)
|
||||
except ImportError:
|
||||
from django.test import mock
|
||||
|
@ -15,6 +15,7 @@ except ImportError:
|
|||
HStoreExtension = mock.Mock()
|
||||
TrigramExtension = mock.Mock()
|
||||
UnaccentExtension = mock.Mock()
|
||||
CITextExtension = mock.Mock()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
@ -27,4 +28,5 @@ class Migration(migrations.Migration):
|
|||
HStoreExtension(),
|
||||
TrigramExtension(),
|
||||
UnaccentExtension(),
|
||||
CITextExtension(),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue