#26056: ArrayField does not work with ValueListQuerySet -------------------------------------+------------------------------------- Reporter: Przemek | Owner: bcail Type: New feature | Status: closed Component: contrib.postgres | Version: dev Severity: Normal | Resolution: fixed Keywords: | Triage Stage: Ready for | checkin Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Mariusz Felisiak): Martin, thanks for the report, however it works for me with an empty subquery, e.g. {{{#!diff diff --git a/tests/postgres_tests/test_array.py b/tests/postgres_tests/test_array.py index f7615c974e..9a3966a821 100644 --- a/tests/postgres_tests/test_array.py +++ b/tests/postgres_tests/test_array.py @@ -423,6 +423,21 @@ class TestQuerying(PostgreSQLTestCase): self.objs[:3], ) + def test_overlap_values_empty(self): + qs = NullableIntegerArrayModel.objects.filter(order__lt=0) + self.assertSequenceEqual( + NullableIntegerArrayModel.objects.filter( + field__overlap=qs.values_list("field"), + ), + [], + ) + self.assertSequenceEqual( + NullableIntegerArrayModel.objects.filter( + field__overlap=NullableIntegerArrayModel.objects.none().values("field"), + ), + [], + ) + def test_lookups_autofield_array(self): qs = ( NullableIntegerArrayModel.objects.filter( }}} If you believe it's an issue in Django, then please create a **new ticket** in Trac and follow our [https://docs.djangoproject.com/en/dev/internals/contributing/bugs-and- features/#reporting-bugs bug reporting guidelines]. A sample project that reproduces your issue would be very helpful. -- Ticket URL: <https://code.djangoproject.com/ticket/26056#comment:18> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/010701891b5bc20a-45502c05-c4a1-4889-8be2-67024cf74baf-000000%40eu-central-1.amazonses.com.