ModelAdmin.ordering
Set ordering
to specify how lists of objects should be ordered in the Django admin views. This should be a list or tuple in the same format as a model’s ordering
parameter.
If this isn’t provided, the Django admin will use the model’s default ordering.
If you need to specify a dynamic order (for example depending on user or language) you can implement a get_ordering()
method.
Please login to continue.