mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Fixed #35747 -- Used default ordering when the ORDER_VAR param is blank in the admin changelist.
This commit is contained in:
@@ -395,7 +395,7 @@ class ChangeList:
|
||||
ordering = list(
|
||||
self.model_admin.get_ordering(request) or self._get_default_ordering()
|
||||
)
|
||||
if ORDER_VAR in params:
|
||||
if params.get(ORDER_VAR):
|
||||
# Clear ordering and used params
|
||||
ordering = []
|
||||
order_params = params[ORDER_VAR].split(".")
|
||||
|
||||
Reference in New Issue
Block a user