make application tests run again

This commit is contained in:
Oskar Hahn 2012-06-19 10:50:55 +02:00
parent a439794874
commit f13ee5f409

View File

@ -202,13 +202,12 @@ class Application(models.Model, SlideMixin):
changed_fields = ", ".join(field_names))) changed_fields = ", ".join(field_names)))
return # Done return # Done
if self.title != "": version = AVersion(title=getattr(self, 'title', ''),
version = AVersion(title=getattr(self, 'title', ''), text=getattr(self, 'text', ''),
text=getattr(self, 'text', ''), reason=getattr(self, 'reason', ''),
reason=getattr(self, 'reason', ''), application=self)
application=self) version.save()
version.save() self.writelog(_("Version %s created") % version.aid, user)
self.writelog(_("Version %s created") % version.aid, user)
is_manager = user.has_perm('application.can_manage_application') is_manager = user.has_perm('application.can_manage_application')
except AttributeError: except AttributeError:
is_manager = False is_manager = False