Ticket PDF exporter: Fix call to None.timezone

This commit is contained in:
Raphael Michel
2021-04-20 18:31:39 +02:00
parent 97dbef9778
commit b482d84c3c
2 changed files with 4 additions and 2 deletions

View File

@@ -72,8 +72,10 @@ class BaseExporter:
if isinstance(event, QuerySet):
self.events = event
self.event = None
self.timezone = self.events.first().timezone
else:
self.events = Event.objects.filter(pk=event.pk)
self.timezone = event.timezone
def __str__(self):
return self.identifier