Skip to content
Snippets Groups Projects
Commit 915d229f authored by permcu's avatar permcu Committed by Julian
Browse files

Add LessonsForPersonType

parent 87d26d33
No related branches found
No related tags found
1 merge request!360Resolve "Add absence management to course book student dialog"
......@@ -39,7 +39,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