Skip to content
Snippets Groups Projects
Commit 4860e1aa authored by permcu's avatar permcu
Browse files

Add LessonsForPersonType

parent 0aca9c6d
No related branches found
No related tags found
1 merge request!361Resolve "Add statistics page for absences"
......@@ -38,7 +38,7 @@ class Query(graphene.ObjectType):
courses_of_person = FilterOrderList(CourseType, person=graphene.ID())
lessons_for_persons = FilterOrderList(
LessonForPerson, # person graphene.List(LessonEvent)
LessonsForPersonType,
persons=graphene.List(graphene.ID, required=True),
start=graphene.Date(required=True),
end=graphene.Date(required=True),
......
import graphene
from aleksis.apps.chronos.schema import LessonEventType
class LessonsForPersonType(graphene.ObjectType):
id = graphene.ID() # noqa
lessons = graphene.List(LessonEventType)
class AbsencesBatchCreateMutation(graphene.Mutation):
class Arguments:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment