Commit a6595af4 authored by Michal Čihař's avatar Michal Čihař

Need to save first, as create_translation refers to subproject

parent ff13519d
......@@ -169,10 +169,11 @@ class SubProject(models.Model):
self.configure_repo()
self.configure_branch()
self.update_branch()
self.create_translations()
super(SubProject, self).save(*args, **kwargs)
self.create_translations()
class Translation(models.Model):
subproject = models.ForeignKey(SubProject)
language = models.ForeignKey(Language)
......
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