Skip to content

Commit

Permalink
Merge pull request #952 from CodingPirates/949-bug-admin-ventelister-…
Browse files Browse the repository at this point in the history
…sortering-kun-efter-nummer-på-ventelister-virker-ikke

949 bug admin ventelister sortering kun efter nummer på ventelister virker ikke
  • Loading branch information
rasmusselsmark authored Aug 20, 2023
2 parents e284328 + 467e010 commit ff365ee
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions members/admin/waitinglist_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def get_form(self, request, obj=None, change=False, **kwargs):
"person_link",
"person_age_years",
"person_gender_text",
"user_waiting_list_number",
"user_created",
"user_added_waiting_list",
"user_waiting_list_number",
)

list_filter = (
Expand All @@ -99,7 +99,10 @@ def get_form(self, request, obj=None, change=False, **kwargs):
"department__union__name",
"person__name",
]
search_help_text = "Du kan søge på forening, afdeling eller person"
search_help_text = mark_safe(
"""Du kan søge på forening, afdeling eller person.<br>
'Nummer på venteliste' er relateret til personernes oprettelsestidspunkt"""
)

actions = [
"delete_many_from_department_waitinglist_action",
Expand Down Expand Up @@ -325,4 +328,4 @@ def user_waiting_list_number(self, item):
return item.number_on_waiting_list()

user_waiting_list_number.short_description = "Nummer på venteliste"
user_waiting_list_number.admin_order_field = "added_at"
user_waiting_list_number.admin_order_field = "on_waiting_list_since"

0 comments on commit ff365ee

Please sign in to comment.