From 289ce3962bb9442591e1d5c04763dc7dd608b956 Mon Sep 17 00:00:00 2001 From: James Murty Date: Mon, 17 Oct 2016 13:58:46 +1100 Subject: [PATCH] Remove detail page for Occurrence model Remove view, template, and URL path for Occurrences which do not need to be routable. --- icekit_events/models.py | 4 ---- icekit_events/templates/icekit_events/event.html | 4 +--- icekit_events/templates/icekit_events/index.html | 4 +--- .../templates/icekit_events/occurrence.html | 14 -------------- icekit_events/urls.py | 2 -- 5 files changed, 2 insertions(+), 26 deletions(-) delete mode 100644 icekit_events/templates/icekit_events/occurrence.html diff --git a/icekit_events/models.py b/icekit_events/models.py index 9a88e2a..7c70906 100644 --- a/icekit_events/models.py +++ b/icekit_events/models.py @@ -736,10 +736,6 @@ def save(self, *args, **kwargs): def title(self): return unicode(self) - def get_absolute_url(self): - return reverse('icekit_events_occurrence_detail', - args=(self.event.pk, self.pk,)) - def get_occurrence_times_for_event(event): """ diff --git a/icekit_events/templates/icekit_events/event.html b/icekit_events/templates/icekit_events/event.html index ed34f6c..ca5a0fe 100644 --- a/icekit_events/templates/icekit_events/event.html +++ b/icekit_events/templates/icekit_events/event.html @@ -22,9 +22,7 @@

Occurrences