From f13ee5f409925e1f76bec48efe1c8f890b388c69 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Tue, 19 Jun 2012 10:50:55 +0200 Subject: [PATCH] make application tests run again --- openslides/application/models.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/openslides/application/models.py b/openslides/application/models.py index 56c69fc28..2c0311a85 100644 --- a/openslides/application/models.py +++ b/openslides/application/models.py @@ -202,13 +202,12 @@ class Application(models.Model, SlideMixin): changed_fields = ", ".join(field_names))) return # Done - if self.title != "": - version = AVersion(title=getattr(self, 'title', ''), - text=getattr(self, 'text', ''), - reason=getattr(self, 'reason', ''), - application=self) - version.save() - self.writelog(_("Version %s created") % version.aid, user) + version = AVersion(title=getattr(self, 'title', ''), + text=getattr(self, 'text', ''), + reason=getattr(self, 'reason', ''), + application=self) + version.save() + self.writelog(_("Version %s created") % version.aid, user) is_manager = user.has_perm('application.can_manage_application') except AttributeError: is_manager = False