From 989f6b2d84e8d384dcf8da822b70cfd5585b6c85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20J=C3=A4ckel?= Date: Wed, 19 Jun 2013 21:40:59 +0200 Subject: [PATCH] Space in Motion Log --- openslides/motion/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openslides/motion/models.py b/openslides/motion/models.py index 8c819b99f..ffab149ee 100644 --- a/openslides/motion/models.py +++ b/openslides/motion/models.py @@ -674,10 +674,11 @@ class MotionLog(models.Model): Return a string, representing the log message. """ time = formats.date_format(self.time, 'DATETIME_FORMAT') - return_message = '%s ' % time + ''.join(map(_, self.message_list)) + time_and_messages = '%s ' % time + ''.join(map(_, self.message_list)) if self.person is not None: - return_message += _(' by %s') % self.person - return return_message + return _('%(time_and_messages)s by %(person)s') % {'time_and_messages': time_and_messages, + 'person': self.person} + return time_and_messages class MotionVote(BaseVote):