mirror of
https://github.com/django/django.git
synced 2025-07-12 15:55:13 +00:00
Fixed #28702 -- Made query lookups for CIText fields use citext.
This commit is contained in:
parent
78c5e7b90e
commit
f0a68c2511
6 changed files with 36 additions and 3 deletions
|
@ -138,6 +138,10 @@ class Tests(TestCase):
|
|||
for lookup in lookups:
|
||||
with self.subTest(lookup=lookup):
|
||||
self.assertIn('::text', do.lookup_cast(lookup))
|
||||
for lookup in lookups:
|
||||
for field_type in ('CICharField', 'CIEmailField', 'CITextField'):
|
||||
with self.subTest(lookup=lookup, field_type=field_type):
|
||||
self.assertIn('::citext', do.lookup_cast(lookup, internal_type=field_type))
|
||||
|
||||
def test_correct_extraction_psycopg2_version(self):
|
||||
from django.db.backends.postgresql.base import psycopg2_version
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue