Closed jej closed 1 year ago
a) I don't understand what this change can achieve, currently not possible with either UpOrderedSortableBookAdmin
or DownOrderedSortableBookAdmin
.
b) apparently you didn't read the Contribution Guidelines.
If I am not wrong, reorder with the manage command is not possible if order is not specified in Meta. But that's not mandatory to use Meta for ordering. This PR proposes a way to inform about the order, even when not specified in Meta. I didn't see in doc other way to do that... Maybe just a dirty hack I agree...
Some models want to order in the admin interface only, and not in Meta. This hacks allows to use an "_ordering_sortable" model attribute to specify the order, so that reorder command can do job anyway. Meta ordering takes the priority. I hope it's a clean approach.