@ -93,7 +93,9 @@ def add_helper_shift(self):
@login_required
def shift_detail(request, pk):
shift = get_object_or_404(Shift, pk=pk)
shift = get_object_or_404(
Shift.with_reg_count().prefetch_related("shiftregistration_set__helper"), pk=pk
)
form = HelperShift()
if request.method == "POST":
form = HelperShift(request.POST)