#30000: QuerySet constructed with .union() should raise an exception on
unsupported
filter() attempt.
-------------------------------------+-------------------------------------
Reporter: thoha | Owner: Hasan
| Ramezani
Type: Bug | Status: closed
Component: Database layer | Version: master
(models, ORM) |
Severity: Normal | Resolution: duplicate
Keywords: queryset union | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by felixxm):
* status: assigned => closed
* version: 1.11 => master
* resolution: => duplicate
Comment:
`filter()` and `exclude()` are unsupported but doesn't raise an error yet.
As [https://docs.djangoproject.com/en/stable/ref/models/querysets/#union
per the documentation], ''"only LIMIT, OFFSET, COUNT(*), ORDER BY, and
specifying columns (i.e. slicing, count(), order_by(), and
values()/values_list()) are allowed on the resulting QuerySet."''.
Duplicate of #27995.
See also a ticket #28519 to support these features.
--
Ticket URL: <https://code.djangoproject.com/ticket/30000#comment:9>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/063.f68fc5bdda14c90639963aafa4d99d76%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.