From 3cac51efbc131689483d125824a2e24bc916d8fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20H=C3=A4ttasch?= <benjamin.haettasch@fachschaft.informatik.tu-darmstadt.de> Date: Sat, 15 Oct 2022 12:58:15 +0200 Subject: [PATCH] Introduce timestamp for plan publishing and use for color coding This mostly implements #159 Introduce a new field that denotes the timestamp when the plan was published Introduce admin actions to publish and unpublish the plan and set that timestamp accordingly Prevent other means to change visibility of the plan Use that timestamp to only highlight recent changes when they occurred after the plan was already published --- AKModel/admin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AKModel/admin.py b/AKModel/admin.py index 6bbbee0f..ff73729d 100644 --- a/AKModel/admin.py +++ b/AKModel/admin.py @@ -327,6 +327,8 @@ class AKSlotAdmin(admin.ModelAdmin): return mark_safe(link) return "-" + ak_details_link.short_description = _('AK Details') + @admin.register(Availability) class AvailabilityAdmin(admin.ModelAdmin): -- GitLab