Changes between Initial Version and Version 1 of Ticket #17522, comment 9


Ignore:
Timestamp:
Jan 1, 2019, 1:09:48 PM (6 years ago)
Author:
Javier Abadia Miranda

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #17522, comment 9

    initial v1  
    44>
    55Because the `ordering` tuple purpose is to specify the **default** ordering that the user can change afterwards by clicking on column headers. If I'm forced to embed the ordering in the `get_queryset()` method, then:
     6
    671) I am forced to implement a get_queryset in situations where I don't need to do it, because defining additional columns via properties with `get_` methods works fine and it's convenient and consistent with `list_display`
    782) The user can't change the ordering afterwards, or I need to put logic inside `get_queryset()` to include the sorting or not depending on what the user does.
     9
    810The funny thing is that everything works as expected, if you can work around the too strict (in my opinion) validation.
Back to Top