From d803ddcff90b7f9a40654db4f57364cc9ffab6b1 Mon Sep 17 00:00:00 2001 From: Mike J Date: Mon, 15 May 2023 12:21:09 -0600 Subject: [PATCH] Update options.py Fix linting issues --- django/contrib/admin/options.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/django/contrib/admin/options.py b/django/contrib/admin/options.py index 1e65be0795..2a5dfb4ad3 100644 --- a/django/contrib/admin/options.py +++ b/django/contrib/admin/options.py @@ -250,9 +250,7 @@ class BaseModelAdmin(metaclass=forms.MediaDefiningClass): if related_admin is not None: ordering = related_admin.get_ordering(request) if ordering is not None and ordering != (): - return related_admin.get_queryset(request).order_by( - *ordering - ) + return related_admin.get_queryset(request).order_by(*ordering) return None def formfield_for_foreignkey(self, db_field, request, **kwargs):