Commit 3ac9b2d2 authored by Robert's avatar Robert

Add group name to site event feed

parent a442baa5
Pipeline #1411 failed with stage
in 1 minute and 41 seconds
......@@ -181,6 +181,13 @@ class SiteCalendarFeed(BaseCalendarFeed):
def get_calendar_owner(self):
return None
def item_title(self, item):
entity = item.content.first().associations.first().entity
if entity.is_group:
return '[{}] {}'.format(entity.slug, item.content.first().title)
return super().item_title(item)
def title(self):
return sites_models.Site.objects.get_current().name
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment