mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #22907 -- Array contains must have same type.
This commit is contained in:
@@ -118,6 +118,13 @@ class TestQuerying(TestCase):
|
||||
self.objs[1:3]
|
||||
)
|
||||
|
||||
def test_contains_charfield(self):
|
||||
# Regression for #22907
|
||||
self.assertSequenceEqual(
|
||||
CharArrayModel.objects.filter(field__contains=['text']),
|
||||
[]
|
||||
)
|
||||
|
||||
def test_index(self):
|
||||
self.assertSequenceEqual(
|
||||
NullableIntegerArrayModel.objects.filter(field__0=2),
|
||||
|
||||
Reference in New Issue
Block a user