From cbf236c67f7fb8fb475fe1f5ef5c231a3f7de3a5 Mon Sep 17 00:00:00 2001 From: James Murty Date: Tue, 18 Oct 2016 12:03:59 +1100 Subject: [PATCH] Fix Events admin calendar template and URL paths Fix the Calendar widget shown above the admin events listing, which was left behind with the model rename from Event to EventBase. --- icekit_events/admin.py | 2 +- .../admin/icekit_events/{event => eventbase}/calendar.html | 0 .../admin/icekit_events/{event => eventbase}/change_list.html | 0 3 files changed, 1 insertion(+), 1 deletion(-) rename icekit_events/templates/admin/icekit_events/{event => eventbase}/calendar.html (100%) rename icekit_events/templates/admin/icekit_events/{event => eventbase}/change_list.html (100%) diff --git a/icekit_events/admin.py b/icekit_events/admin.py index 02fde0b..26683eb 100644 --- a/icekit_events/admin.py +++ b/icekit_events/admin.py @@ -168,7 +168,7 @@ def calendar(self, request): 'is_popup': bool(int(request.GET.get('_popup', 0))), } return TemplateResponse( - request, 'admin/icekit_events/event/calendar.html', context) + request, 'admin/icekit_events/eventbase/calendar.html', context) def calendar_data(self, request): """ diff --git a/icekit_events/templates/admin/icekit_events/event/calendar.html b/icekit_events/templates/admin/icekit_events/eventbase/calendar.html similarity index 100% rename from icekit_events/templates/admin/icekit_events/event/calendar.html rename to icekit_events/templates/admin/icekit_events/eventbase/calendar.html diff --git a/icekit_events/templates/admin/icekit_events/event/change_list.html b/icekit_events/templates/admin/icekit_events/eventbase/change_list.html similarity index 100% rename from icekit_events/templates/admin/icekit_events/event/change_list.html rename to icekit_events/templates/admin/icekit_events/eventbase/change_list.html