Skip to content

Commit

Permalink
Update waitinglist_admin.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewel committed Sep 24, 2023
1 parent 41f5bed commit 08b02f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions members/admin/waitinglist_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,15 +266,15 @@ class MassConfirmForm(forms.Form):

def get_queryset(self, request):
qs = super(WaitingListAdmin, self).get_queryset(request)

qs = qs.annotate(
_waitinglist_position=WaitingList.objects.filter(
#department=self.department,
# department=self.department,
on_waiting_list_since__lt=self.on_waiting_list_since,
).count()
+ 1,
)

if request.user.is_superuser or request.user.has_perm(
"members.view_all_persons"
):
Expand Down Expand Up @@ -339,4 +339,4 @@ def user_waiting_list_number(self, item):

user_waiting_list_number.short_description = "Nummer på venteliste"
user_waiting_list_number.admin_order_field = "_waitinglist_position"
#user_waiting_list_number.admin_order_field = "on_waiting_list_since"
# user_waiting_list_number.admin_order_field = "on_waiting_list_since"

0 comments on commit 08b02f0

Please sign in to comment.