src/ldt/ldt/ldt_utils/models.py
changeset 424 a2f72b31811b
parent 411 d126a67897c0
child 458 5d35581192cb
--- a/src/ldt/ldt/ldt_utils/models.py	Thu Jan 19 10:48:06 2012 +0100
+++ b/src/ldt/ldt/ldt_utils/models.py	Thu Jan 19 16:46:06 2012 +0100
@@ -219,7 +219,7 @@
             if not self.nb_annotation:
                 self.nb_annotation = 0
             if not self.stat_annotation:
-                self.stat_annotation = '0,0'     
+                self.stat_annotation = ('0,' * settings.DIVISIONS_FOR_STAT_ANNOTATION)[:-1]     
 
         super(Content, self).save(*args, **kwargs)