mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-05-15 11:03:11 +00:00
Order filter by field alphabetically
This commit is contained in:
parent
8b97cc2acb
commit
ff6349a89a
1 changed files with 1 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ class FieldFilter(SimpleListFilter):
|
|||
return []
|
||||
if not self.target_model:
|
||||
return []
|
||||
return [(field.name, field.name) for field in self.target_model._meta.fields]
|
||||
return sorted((field.name, field.name) for field in self.target_model._meta.fields)
|
||||
|
||||
def queryset(self, request, queryset):
|
||||
if self.value() is None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue