Revert "Switch to calendar at 25 subevents already"

This reverts commit 8001063347.
This commit is contained in:
Raphael Michel
2020-06-17 18:07:07 +02:00
parent 16472e915d
commit 74a0cafa0f
2 changed files with 2 additions and 2 deletions

View File

@@ -362,7 +362,7 @@ class WidgetAPIProductList(EventListMixin, View):
data['list_type'] = list_type
if hasattr(self.request, 'event') and data['list_type'] not in ("calendar", "week"):
if self.request.event.subevents.count() > 25:
if self.request.event.subevents.count() > 100:
if self.request.event.settings.event_list_type not in ("calendar", "week"):
self.request.event.settings.event_list_type = "calendar"
data['list_type'] = list_type = 'calendar'