Changes between Initial Version and Version 1 of Ticket #26211, comment 4


Ignore:
Timestamp:
Feb 11, 2016, 5:54:15 PM (8 years ago)
Author:
Tim Graham

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #26211, comment 4

    initial v1  
    1 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.
     1I disagree -- enabling `QuerySet.order_by()` to sometimes do operations in memory could be quite confusing. Also, it's impossible to replicate the databases implementation of ordering in Python. 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.
Back to Top