X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/deb04f7ef6b5147cc588f66e247b1327d1f10ffc..0614cb0f3a4de38c68d61a090ef4820f19ff72e2:/sercom/model.py 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()