|
|
@ -17,9 +17,12 @@ def index(request):
|
|
|
|
# currently only sorts by date
|
|
|
|
# currently only sorts by date
|
|
|
|
context = {}
|
|
|
|
context = {}
|
|
|
|
if request.helper:
|
|
|
|
if request.helper:
|
|
|
|
context["my_shifts"] = (reg.shift for reg in request.helper.shiftregistration_set.filter(
|
|
|
|
context["my_shifts"] = (
|
|
|
|
shift__start_at__gt=timezone.now()
|
|
|
|
reg.shift
|
|
|
|
).order_by("shift__start_at"))
|
|
|
|
for reg in request.helper.shiftregistration_set.filter(
|
|
|
|
|
|
|
|
shift__start_at__gt=timezone.now()
|
|
|
|
|
|
|
|
).order_by("shift__start_at")
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
imp_shift = request.helper.important_shift()
|
|
|
|
imp_shift = request.helper.important_shift()
|
|
|
|
print(imp_shift)
|
|
|
|
print(imp_shift)
|
|
|
|