Skip to content

Commit

Permalink
ORM syntax for sort field in user admin.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaj committed Dec 8, 2023
1 parent 59d8150 commit 5f939eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/finger/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ def member_name(self, obj):
return mark_safe(f'<a href="{link}">{name}</a>')
return None

member_name.admin_order_field = "member_name"
member_name.admin_order_field = ("member__first_name", "member__last_name")
member_name.short_description = "Member"


Expand Down

0 comments on commit 5f939eb

Please sign in to comment.