commit
adddc7c044
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user