#26056: ArrayField does not work with ValueListQuerySet
----------------------------------+------------------------------------
Reporter: Przemek | Owner: (none)
Type: New feature | Status: new
Component: contrib.postgres | Version: dev
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 1
Easy pickings: 0 | UI/UX: 0
----------------------------------+------------------------------------
Comment (by Peter Law):
For anyone who ends up searching for this, the failure (as of 2.2 and
possibly earlier) is a `ProgrammingError` from the database rather than
the `TypeError` mentioned above.
The workaround mentioned in
https://github.com/django/django/pull/7838#issuecomment-337223376
continues to work:
{{{#!python
A.objects.filter(
array_field__overlap=models.Func(
B.objects.values('pk'),
function='array',
),
)
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26056#comment:8>
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/064.c2ce7c26b3fbfd14f580edab5bad8f85%40djangoproject.com.