mirror of
https://github.com/django/django.git
synced 2025-08-11 14:28:54 +00:00
[5.0.x] Refs #34060 -- Adjusted CVE-2024-53908 regression test for psycopg2.
The lack of explicit cast for JSON literals on psycopg2 is fixed on 5.1+ by
0d8fbe2ade
but didn't qualify for a backport to
stable/5.0.x at the time.
This commit is contained in:
parent
21dfd30d69
commit
577cd7343a
1 changed files with 1 additions and 1 deletions
|
@ -611,7 +611,7 @@ class TestQuerying(TestCase):
|
||||||
def test_has_key_literal_lookup(self):
|
def test_has_key_literal_lookup(self):
|
||||||
self.assertSequenceEqual(
|
self.assertSequenceEqual(
|
||||||
NullableJSONModel.objects.filter(
|
NullableJSONModel.objects.filter(
|
||||||
HasKey(Value({"foo": "bar"}, JSONField()), "foo")
|
HasKey(Cast(Value({"foo": "bar"}, JSONField()), JSONField()), "foo")
|
||||||
).order_by("id"),
|
).order_by("id"),
|
||||||
self.objs,
|
self.objs,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue