From 8973a125a15471c864ff691bd92f2e1f896954e3 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Tue, 13 Mar 2007 23:59:32 +0000 Subject: [PATCH] =?utf8?q?Arreglar=20integridad=20referencial=20de=20Corre?= =?utf8?q?ccion.=20En=20realidad=20ahora=20se=20hace=20el=20round-robin=20?= =?utf8?q?de=20docentes=20para=20asignarlos=20como=20correctores,=20as?= =?utf8?q?=C3=AD=20que=20no=20puede=20haber=20una=20correcci=C3=B3n=20sin?= =?utf8?q?=20corrector.?= 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 41c4ced..f0320dc 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -804,7 +804,7 @@ class Correccion(SQLObject): #{{{ pk = DatabaseIndex(instancia, entregador, unique=True) # Campos entrega = ForeignKey('Entrega', notNone=True, cascade=False) - corrector = ForeignKey('DocenteInscripto', default=None, cascade='null') + corrector = ForeignKey('DocenteInscripto', notNone=True, cascade=False) asignado = DateTimeCol(notNone=True, default=DateTimeCol.now) corregido = DateTimeCol(default=None) nota = DecimalCol(size=3, precision=1, default=None) -- 2.43.0