List and calendar for all organizers

This commit is contained in:
Raphael Michel
2017-08-24 17:13:22 +02:00
parent cd6b1a2327
commit d697381d8b
7 changed files with 58 additions and 32 deletions

View File

@@ -27,7 +27,8 @@ class OrganizerIndex(OrganizerViewMixin, ListView):
paginate_by = 30
def get(self, request, *args, **kwargs):
if request.organizer.settings.event_list_type == 'calendar':
style = request.GET.get("style", request.organizer.settings.event_list_type)
if style == "calendar":
cv = CalendarView()
cv.request = request
return cv.get(request, *args, **kwargs)