|
|
|
@ -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):
|
|
|
|
|