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