diff --git a/openslides/motion/models.py b/openslides/motion/models.py index 72734da68..97cd9c04f 100644 --- a/openslides/motion/models.py +++ b/openslides/motion/models.py @@ -304,6 +304,16 @@ class Motion(SlideMixin, models.Model): """ self.state_id = get_state('default').id + def slide(self): + """ + return the slide dict + """ + data = super(Motion, self).slide() + data['motion'] = self + data['title'] = self.title + data['template'] = 'projector/Motion.html' + return data + class MotionVersion(models.Model): title = models.CharField(max_length=255, verbose_name=ugettext_lazy("Title")) diff --git a/openslides/motion/templates/projector/Motion.html b/openslides/motion/templates/projector/Motion.html index ab094313f..db7e8d54a 100644 --- a/openslides/motion/templates/projector/Motion.html +++ b/openslides/motion/templates/projector/Motion.html @@ -16,10 +16,10 @@ {% if motion.status == "rej" %} {% endif %} - {% trans motion.get_status_display %} + {% trans motion.status %} {% else %} {% for note in motion.notes %} - {{ note }} + {{ note }} {% endfor %} {% endif %}
@@ -53,7 +53,7 @@ {% endwith %}{% trans "Submitter" %}:
- {{ motion.submitter }}
+ {{ motion.submitter.person }}