Need to save first, as create_translation refers to subproject

This commit is contained in:
Michal Čihař 2012-03-01 14:39:43 +01:00
parent ff13519df6
commit a6595af47c

View File

@ -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)