#27995: Raise a descriptive error on unsupported operations following
QuerySet.union()
-------------------------------------+-------------------------------------
Reporter: Tim | Owner: nobody
Graham |
Type: | Status: new
Cleanup/optimization |
Component: Database | Version: 1.10
layer (models, ORM) |
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
The documentation for `QuerySet.union()` says, "In addition, only LIMIT,
OFFSET, and ORDER BY (i.e. slicing and order_by()) are allowed on the
resulting QuerySet.", however, there isn't any strict enforcement about
this -- some operations like `QuerySet.count()` might appear to work. See
#27982 and #27990 for confusion about this.
--
Ticket URL: <https://code.djangoproject.com/ticket/27995>
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/052.319c8a09af6f5f677d347c43dc0130f5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.