Changes between Initial Version and Version 1 of Ticket #25790, comment 2
- Timestamp:
- Jan 6, 2018, 6:58:55 AM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #25790, comment 2
initial v1 5 5 I suspect this is overloading the `ModelAdmin.ordering` option (which is for specifying the change list default/initial ordering) with an additional function. 6 6 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.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 intersected with `ordering` to get the final list of columns which will actually be allowed to sort by.