This commit is contained in:
Oskar Hahn 2013-07-29 11:42:53 +02:00
parent 764113e024
commit b03e8cc06b

View File

@ -50,6 +50,13 @@ class Overview(TemplateView):
else: else:
items = Item.objects.filter(type__exact=Item.AGENDA_ITEM) items = Item.objects.filter(type__exact=Item.AGENDA_ITEM)
# Save the items as a list (not a queryset). This is important,
# because in other case, django-mtpp reloads the items in the
# template. But we add some attributes (in this function), which are
# not in the database and would be lost if the items were reloaded.
# TODO: Try to remove this line in later versions of django-mptt
items = list(items)
start = config['agenda_start_event_date_time'] start = config['agenda_start_event_date_time']
if start is None or len(start) == 0: if start is None or len(start) == 0:
start = None start = None