#29142: QuerySet crashes when OuterRef is combined with an operator
-------------------------------------+-------------------------------------
Reporter: Michael Barr | Owner: Matthew
| Schinckel
Type: Bug | Status: closed
Component: Database layer | Version: 2.0
(models, ORM) |
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by Brenton Partridge):
For anyone needing a backport, it's relatively easy to patch in your
userland code.
{{{
# Patch from
https://github.com/django/django/commit/c412926a2e359afb40738d8177c9f3bef80ee04e
# https://code.djangoproject.com/ticket/29142
django.db.models.F.relabeled_clone = lambda self, relabels: self
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29142#comment:10>
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/073.7b391ec2ffbd038206dc3f5057b4b43f%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.