#26211: prefetch_related with Prefetch with queryset with explicit Ordering Ignored -------------------------------------+------------------------------------- Reporter: cancan101 | Owner: nobody Type: New feature | Status: new Component: Database layer | Version: 1.9 (models, ORM) | Severity: Normal | Resolution: 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 timgraham):
* type: Uncategorized => New feature * component: Uncategorized => Database layer (models, ORM) Comment: I disagree -- enabling `QuerySet.order_by()` to sometimes do operations in memory could be quite confusing. I think this has probably been proposed before in some form before, but can't immediately find a discussion. As [https://docs.djangoproject.com/en/stable/ref/models/querysets/ the documentation] notes, "Each `order_by()` call will clear any previous ordering" (it returns a new `QuerySet`). Anyway, this isn't my area of expertise so I'll leave it open for a second opinion. -- Ticket URL: <https://code.djangoproject.com/ticket/26211#comment:4> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/067.9740fe93d1b61dd8ad9151546826604d%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.