feat(views.py): set event color to gray on frontend if is past

This commit is contained in:
2026-03-16 14:00:38 +01:00
parent af05e9186e
commit fa06fb3854

View File

@@ -47,6 +47,8 @@ def get_calendar_events(request):
event_page = EventPage.objects.live().filter(title=event["title"]).first()
if event_page:
event["url"] = event_page.url
if event_page.is_past:
event["color"] = "#666666"
return JsonResponse(events_list, safe=False)