#28328: QuerySet.only doesn't work with QuerySet.difference
-------------------------------------+-------------------------------------
Reporter: Dmitry Dygalo | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version: 1.11
(models, ORM) |
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham):
* status: new => closed
* type: Uncategorized => Bug
* resolution: => invalid
Comment:
I believe it's unsupported but doesn't raise an error yet. As
[https://docs.djangoproject.com/en/dev/ref/models/querysets/#union per the
documentation], "only LIMIT, OFFSET, and ORDER BY (i.e. slicing and
order_by()) are allowed on the resulting QuerySet." See #27995 for a
ticket to raise a helpful message about this.
--
Ticket URL: <https://code.djangoproject.com/ticket/28328#comment:1>
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/070.7bb17e96333b16f329b9d8211c2244d9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.