# HG changeset patch # User rougeronj # Date 1349972287 -7200 # Node ID 1f69157772a16a6761938baaf89fe82d2467f231 # Parent 77f740eaf247f35c5b853514763670c8e7d21f4d bug correction on creation of content diff -r 77f740eaf247 -r 1f69157772a1 src/ldt/ldt/ldt_utils/models.py --- a/src/ldt/ldt/ldt_utils/models.py Thu Oct 11 18:09:32 2012 +0200 +++ b/src/ldt/ldt/ldt_utils/models.py Thu Oct 11 18:18:07 2012 +0200 @@ -284,9 +284,11 @@ create_front_project = False + # update it + self.sync_iri_file() + if not self.pk: - create_front_project = True - + create_front_project = True super(Content, self).save(*args, **kwargs) @@ -296,10 +298,6 @@ self.create_front_project() assign('ldt_utils.change_content', get_current_user(), self) - # update it - # To put after project creation, to assume transaction - self.sync_iri_file() - def __unicode__(self): return str(self.id) + ": " + self.iri_id