Allow for null venue

This commit is contained in:
2021-11-15 08:34:26 -06:00
parent 83fdb94e54
commit e612daf54e

View File

@@ -13,7 +13,7 @@ class EventsListView(BenchcoachListView):
list_url = 'events list' list_url = 'events list'
page_title = "Events" page_title = "Events"
title_strf = '{item.away_team} vs. {item.home_team}' title_strf = '{item.away_team} vs. {item.home_team}'
body_strf = "{item.start:%a, %b %-d, %-I:%M %p},\n{item.venue.name}" body_strf = "{item.start:%a, %b %-d, %-I:%M %p},\n{item.venue}"
def get_context_data(self): def get_context_data(self):
context = super().get_context_data() context = super().get_context_data()