From 508f2c0f462de26a0d360ee54ae454c54dc75c76 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Thu, 1 Mar 2007 19:03:28 +0000 Subject: [PATCH] Agrego property para leer todas las entregas --- sercom/model.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sercom/model.py b/sercom/model.py index efa906c..f8ae374 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -859,6 +859,9 @@ class Correccion(SQLObject): #{{{ nota = DecimalCol(size=3, precision=1, default=None) observaciones = UnicodeCol(default=None) + def _get_entregas(self): + return list(Entrega.selectBy(instancia=self.instancia, entregador=self.entregador)) + def __repr__(self): return 'Correccion(instancia=%s, entregador=%s, entrega=%s, ' \ 'corrector=%s, asignado=%s, corregido=%s, nota=%s, ' \ -- 2.43.0