#30667: Running last() on a related object with a F() ordering mutates model
ordering.
-------------------------------------+-------------------------------------
Reporter: NyanKiyoshi | Owner: nobody
Type: Bug | Status: closed
Component: Database layer | Version:
(models, ORM) |
Severity: Normal | Resolution: duplicate
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 felixxm):
* status: new => closed
* version: 2.2 =>
* resolution: => duplicate
Comment:
Thanks for this report, it is a duplicate of #30501 because `last()` uses
`QuerySet.reverse()`. Patch will appear in Django 3.0 (see
f8b8b00f0197e52f7a0986fae51462be174dbaea).
--
Ticket URL: <https://code.djangoproject.com/ticket/30667#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 view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/069.77bdd27fa4daf7d726db571a6436d1bb%40djangoproject.com.