From 0847b12d5f70f61ea2a3f604b2bcf2f4320b00a6 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Wed, 7 Mar 2007 01:03:00 +0000 Subject: [PATCH] =?utf8?q?Bugfix:=20Curso.add=5Fejercicio()=20pon=C3=ADa?= =?utf8?q?=20mal=20el=20n=C3=BAmero=20de=20ejercicio.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- sercom/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sercom/model.py b/sercom/model.py index a837ca4..b2bc3a2 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -143,7 +143,7 @@ class Curso(SQLObject): #{{{ for e in Ejercicio.selectBy(curso=self): e.destroySelf() for (n, e) in enumerate(ejercicios): - self.add_ejercicio(n, e) + self.add_ejercicio(n+1, e) if alumnos is not None: for a in AlumnoInscripto.selectBy(curso=self): a.destroySelf() -- 2.43.0