2
0
Fork 0
This commit is contained in:
Andreas (@xAndy) Zimmermann 2022-04-21 00:53:21 +02:00
parent a9d07856e4
commit 972277ebcd
1 changed files with 6 additions and 3 deletions

View File

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