fix row height calculation mismatch on python 3 (#25932)

This commit is contained in:
Frédéric Péters 2018-08-20 21:55:15 +02:00
parent e8a74a1828
commit 33ba0fe29d
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ class AgendaDayView(DayArchiveView):
context = super(AgendaDayView, self).get_context_data(**kwargs)
context['agenda'] = self.agenda
try:
context['hour_span'] = max(60 / self.agenda.get_base_meeting_duration(), 1)
context['hour_span'] = max(60 // self.agenda.get_base_meeting_duration(), 1)
except ValueError: # no meeting types defined
context['hour_span'] = 1
context['user_can_manage'] = self.agenda.can_be_managed(self.request.user)