X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/da423dfdeefd1a24017b7980dde722676c31d3a5..93a72f008fd1db8fb8e7f2a0facd957595c42f89:/sercom/model.py?ds=sidebyside diff --git a/sercom/model.py b/sercom/model.py index 21a2e6c..f139909 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -334,8 +334,8 @@ class Tarea(InheritableSQLObject, ByObject): #{{{ class Enunciado(SQLObject, ByObject): #{{{ # Clave nombre = UnicodeCol(length=60, alternateID=True) + anio = IntCol(notNone=True) cuatrimestre = IntCol(notNone=True) - numero = IntCol(notNone=True) # Campos autor = ForeignKey('Docente') descripcion = UnicodeCol(length=255, default=None) @@ -354,6 +354,7 @@ class Enunciado(SQLObject, ByObject): #{{{ if tareas: self.tareas = tareas + @classmethod def selectByCurso(self, curso): return Enunciado.selectBy(cuatrimestre=curso.cuatrimestre, numero=curso.numero)