Changes between Initial Version and Version 1 of Ticket #25790, comment 2


Ignore:
Timestamp:
Jan 6, 2018, 6:58:55 AM (6 years ago)
Author:
Ramiro Morales

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25790, comment 2

    initial v1  
    55I suspect this is overloading the `ModelAdmin.ordering` option (which is for specifying the change list default/initial ordering) with an additional function.
    66
    7 A possible solution, provided the feature proposed by this ticket is accepted, is to have another option e.g. `orderable_by` which when not provided makes things behave like they do now and when specified (a list of fields) is ORed with `ordering` to get the final list of columns which will actually be allowed to sort by.
     7A possible solution, provided the feature proposed by this ticket is accepted, is to have another option e.g. `orderable_by` which when not provided makes things behave like they do now and when specified (a list of fields) is intersected with `ordering` to get the final list of columns which will actually be allowed to sort by.
Back to Top