mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
Sort alphabetically, add tests
This commit is contained in:
parent
ccce752138
commit
2cf4508770
2 changed files with 113 additions and 6 deletions
|
@ -562,7 +562,9 @@ class DomainApplicationAdmin(ListHeaderAdmin):
|
|||
"""Lookup reimplementation, gets users of is_staff.
|
||||
Returns a list of tuples consisting of (user.id, user)
|
||||
"""
|
||||
privileged_users = User.objects.filter(is_staff=True)
|
||||
privileged_users = User.objects.filter(is_staff=True).order_by(
|
||||
"first_name", "last_name", "email"
|
||||
)
|
||||
return [(user.id, user) for user in privileged_users]
|
||||
|
||||
def queryset(self, request, queryset):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue