Widget: Add hidden location in detail view

This commit is contained in:
Raphael Michel
2023-04-05 11:22:40 +02:00
parent 43a05e1cb3
commit ecb2865cb8
3 changed files with 12 additions and 0 deletions

View File

@@ -682,8 +682,10 @@ class WidgetAPIProductList(EventListMixin, View):
data['name'] = str(ev.name)
if self.subevent:
data['frontpage_text'] = str(rich_text(self.subevent.frontpage_text, safelinks=False))
data['location'] = str(rich_text(self.subevent.location, safelinks=False))
else:
data['frontpage_text'] = str(rich_text(request.event.settings.frontpage_text, safelinks=False))
data['location'] = str(rich_text(request.event.location, safelinks=False))
data['date_range'] = self._get_date_range(ev, request.event)
fail = False