mirror of
https://github.com/django/django.git
synced 2025-08-28 14:34:27 +00:00
Fixed #22907 -- Array contains must have same type.
This commit is contained in:
parent
9a2ab62977
commit
b65a2001e7
2 changed files with 9 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue