From 06e9ffc8199f4fbf3fb6b9e58a1b93df0ed4d7b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emanuel=20Sch=C3=BCtze?= Date: Fri, 17 Feb 2017 15:32:44 +0100 Subject: [PATCH] Send also motion.state.workflow to motion block slide. to show recommendation names in slide template --- openslides/motions/projector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openslides/motions/projector.py b/openslides/motions/projector.py index 8a64c6d8f..7209c36f9 100644 --- a/openslides/motions/projector.py +++ b/openslides/motions/projector.py @@ -1,7 +1,7 @@ from ..core.exceptions import ProjectorException from ..utils.collection import CollectionElement from ..utils.projector import ProjectorElement -from .models import Motion, MotionBlock, MotionChangeRecommendation +from .models import Motion, MotionBlock, MotionChangeRecommendation, Workflow class MotionSlide(ProjectorElement): @@ -71,6 +71,7 @@ class MotionBlockSlide(ProjectorElement): yield motion_block yield motion_block.agenda_item yield from motion_block.motion_set.all() + yield from Workflow.objects.all() def get_collection_elements_required_for_this(self, collection_element, config_entry): output = super().get_collection_elements_required_for_this(collection_element, config_entry)