X-Git-Url: https://git.llucax.com/software/sercom.git/blobdiff_plain/763908969f2bce092f1afa226efb4bcd516507e9..527c6790e47d8725f6b9306049b3aa89006c393e:/sercom/model.py 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):