Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort Department list by name #950

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions members/admin/waitinglist_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ def delete_many_from_department_waitinglist_action(self, request, queryset):
if request.user.is_superuser or request.user.has_perm(
"members.view_all_persons"
):
department_list_query = Department.objects.all()
department_list_query = Department.objects.all().order_by("name")
else:
department_list_query = Department.objects.filter(
adminuserinformation__user=request.user
)
).order_by("name")

waitinglist_departments = [] # List of unique departments selected by user
for item in queryset:
Expand Down
Loading