diff --git a/openslides/motion/models.py b/openslides/motion/models.py index 3179f8365..47aa9ad72 100644 --- a/openslides/motion/models.py +++ b/openslides/motion/models.py @@ -465,6 +465,7 @@ class MotionLog(models.Model): else: return "%s %s by %s" % (self.time, _(self.message), self.person) + class MotionError(Exception): pass diff --git a/openslides/motion/workflow.py b/openslides/motion/workflow.py index 4e25fee7c..813e0c537 100644 --- a/openslides/motion/workflow.py +++ b/openslides/motion/workflow.py @@ -79,7 +79,7 @@ DUMMY_STATE = State('dummy', ugettext('Unknwon state')) default_workflow = State('pub', ugettext('Published'), support=True, edit_as_submitter=True, version_permission=False) -default_workflow.next_states=[ +default_workflow.next_states = [ State('per', ugettext('Permitted'), create_poll=True, edit_as_submitter=True, next_states=[ State('acc', ugettext('Accepted')), State('rej', ugettext('Rejected')),