@classmethod
def by(cls, **kw):
try:
- return cls.selectBy(limit=1, **kw)[0]
+ return cls.selectBy(**kw)[0]
except IndexError:
raise SQLObjectNotFound, "The object %s with columns %s does not exist" % (cls.__name__, kw)
docentes = RelatedJoin('Docente')
entregas = MultipleJoin('Entrega')
inscriptos = MultipleJoin('Inscripto')
- ejercicios = RelatedJoin('Curso', intermediateTable = 'entrega')
+ ejercicios = RelatedJoin('Ejercicio', intermediateTable = 'entrega')
class Inscripto(BaseSQLObject):
# Clave