Commit 09e4c924 authored by Michal Čihař's avatar Michal Čihař

Do not generate Change on unsaved object

Fixes #1005
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 90fc3940
...@@ -854,6 +854,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin): ...@@ -854,6 +854,7 @@ class SubProject(models.Model, PercentMixin, URLMixin, PathMixin):
translation, translation,
str(error) str(error)
) )
if self.id:
Change.objects.create( Change.objects.create(
subproject=self, subproject=self,
translation=translation, translation=translation,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment