When using Django admin with grappelli I would like that a click on a column header will sort the table by descending order.
(I don't want a default ordering to the columns by defining the ordering field in the Model Meta Class.)
The default behavior is Ascending.
The first click should order like this:
Rewrite the
def result_headers(cl)
add these 2 lines:
now in the ModelAdmin you can:
I tested it and it works