Need to save first, as create_translation refers to subproject
This commit is contained in:
parent
ff13519df6
commit
a6595af47c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user