fix: more required=True in object types
This commit is contained in:
parent
49fdbd9648
commit
adbd7c8c69
|
|
@ -11,23 +11,23 @@ from vbv_lernwelt.notify.email.email_services import format_swiss_datetime
|
|||
|
||||
|
||||
class AttendanceSummary(graphene.ObjectType):
|
||||
days_completed = graphene.Int()
|
||||
participants_present = graphene.Int()
|
||||
days_completed = graphene.Int(required=True)
|
||||
participants_present = graphene.Int(required=True)
|
||||
|
||||
|
||||
class PresenceRecord(graphene.ObjectType):
|
||||
course_session_id = graphene.ID()
|
||||
generation = graphene.String()
|
||||
circle_id = graphene.ID()
|
||||
due_date = graphene.String()
|
||||
participants_present = graphene.Int()
|
||||
participants_total = graphene.Int()
|
||||
cockpit_url = graphene.String()
|
||||
course_session_id = graphene.ID(required=True)
|
||||
generation = graphene.String(required=True)
|
||||
circle_id = graphene.ID(required=True)
|
||||
due_date = graphene.String(required=True)
|
||||
participants_present = graphene.Int(required=True)
|
||||
participants_total = graphene.Int(required=True)
|
||||
cockpit_url = graphene.String(required=True)
|
||||
|
||||
|
||||
class AttendanceDayPresences(graphene.ObjectType):
|
||||
records = graphene.List(PresenceRecord)
|
||||
summary = graphene.Field(AttendanceSummary)
|
||||
records = graphene.List(PresenceRecord, required=True)
|
||||
summary = graphene.Field(AttendanceSummary, required=True)
|
||||
|
||||
|
||||
def attendance_day_presences(
|
||||
|
|
|
|||
Loading…
Reference in New Issue