2
0
Fork 0

fix(checkin): ordering of table

This commit is contained in:
Luca 2024-05-14 23:56:16 +02:00
parent 44417d09cc
commit fb58e1db77
1 changed files with 1 additions and 4 deletions

View File

@ -284,7 +284,6 @@ class RoomShiftList(ShiftList):
class CheckinList(LoginRequiredMixin, ListView):
model = Shift
paginate_by = 30
template_name = "checkin_list.html"
title = "Ankommende Helfer*innen"
@ -294,6 +293,7 @@ class CheckinList(LoginRequiredMixin, ListView):
ShiftRegistration.objects.select_related("helper", "shift")
.prefetch_related("shift__event__calendar")
.filter(shift__deleted=False, state=ShiftRegistration.RegState.REGISTERED)
.order_by("shift__start_at", "shift__room__name")
)
def get_context_data(self, **kwargs):
@ -304,9 +304,6 @@ class CheckinList(LoginRequiredMixin, ListView):
context["title"] = self.title
return context
def get_ordering(self):
return ("start_at", "room__name")
@login_required
def checkin(request, pk):