From a6595af47c1b8411c47202474f024f610cffa3cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 1 Mar 2012 14:39:43 +0100 Subject: [PATCH] Need to save first, as create_translation refers to subproject --- trans/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trans/models.py b/trans/models.py index 5b6c6fe7c..12d231466 100644 --- a/trans/models.py +++ b/trans/models.py @@ -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)