X-Git-Url: https://git.llucax.com/z.facultad/75.52/sercom.git/blobdiff_plain/24d821e044acdae3182666687b317c2971a45d82..699c87e4d39f49a0e2b6e1087786ba971aba70d2:/sercom/model.py?ds=inline diff --git a/sercom/model.py b/sercom/model.py index 9112694..918657a 100644 --- a/sercom/model.py +++ b/sercom/model.py @@ -592,7 +592,8 @@ class Grupo(Entregador): #{{{ def __init__(self, curso=None, nombre=None, responsable=None, **kargs): resp_id = responsable and responsable.id - InheritableSQLObject.__init__(self, cursoID=curso.id, nombre=nombre, + curso_id = curso and curso.id + InheritableSQLObject.__init__(self, cursoID=curso_id, nombre=nombre, responsableID=resp_id, **kargs) def add_alumno(self, alumno, *args, **kargs):