mirror of
https://github.com/django/django.git
synced 2024-11-24 20:07:01 +01:00
Update options.py
Fix linting issues
This commit is contained in:
parent
e78888af22
commit
d803ddcff9
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user