|
|
|
@ -289,10 +289,12 @@ class CheckinList(LoginRequiredMixin, ListView):
|
|
|
|
|
title = "Ankommende Helfer:innen"
|
|
|
|
|
|
|
|
|
|
def get_queryset(self):
|
|
|
|
|
return ShiftRegistration.objects.filter(
|
|
|
|
|
shift__deleted=False,
|
|
|
|
|
state=ShiftRegistration.RegState.REGISTERED,
|
|
|
|
|
).order_by("shift__start_at")[:30]
|
|
|
|
|
return (
|
|
|
|
|
ShiftRegistration.objects.select_related("helper", "shift")
|
|
|
|
|
.prefetch_related("shift__event__calendar")
|
|
|
|
|
.filter(shift__deleted=False, state=ShiftRegistration.RegState.REGISTERED)
|
|
|
|
|
.order_by("shift__start_at")[:30]
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
def get_context_data(self, **kwargs):
|
|
|
|
|
context = super().get_context_data(**kwargs)
|
|
|
|
|