From 6e8779c81bdf0be3e5cdff5ac208b9bc3c3754fc Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Tue, 6 Dec 2022 15:30:35 +0000 Subject: [PATCH] Revamped calendar basically there To fix: - Does not yet display events that span weeks correctly! - Breaks (overflows) on mobile --- RIGS/models.py | 3 +++ RIGS/templates/calendar.html | 6 +++--- RIGS/utils.py | 2 +- pipeline/source_assets/js/src.js | 1 - 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/RIGS/models.py b/RIGS/models.py index 20855251..8157913d 100644 --- a/RIGS/models.py +++ b/RIGS/models.py @@ -616,6 +616,9 @@ class Subhire(BaseEvent): def get_edit_url(self): return reverse('subhire_update', kwargs={'pk': self.pk}) + def get_absolute_url(self): + return reverse('subhire_detail', kwargs={'pk': self.pk}) + @property def earliest_time(self): return find_earliest_event_time(self, []) diff --git a/RIGS/templates/calendar.html b/RIGS/templates/calendar.html index 5702dcf4..75522a9a 100644 --- a/RIGS/templates/calendar.html +++ b/RIGS/templates/calendar.html @@ -3,7 +3,6 @@ {% block js %} -