From b03e8cc06b9f9dd2a7178d32a06e8adea5916341 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Mon, 29 Jul 2013 11:42:53 +0200 Subject: [PATCH] Fixed #833 --- openslides/agenda/views.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/openslides/agenda/views.py b/openslides/agenda/views.py index 3c7268d3e..9333de7c3 100644 --- a/openslides/agenda/views.py +++ b/openslides/agenda/views.py @@ -50,6 +50,13 @@ class Overview(TemplateView): else: 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'] if start is None or len(start) == 0: start = None