Update student terms of def endpoint
This commit is contained in:
parent
7a4f3128ef
commit
48be4c6345
@ -51,9 +51,20 @@ class TermOfDefenceStudentItemSchema(Schema):
|
|||||||
end_date = fields.DateTime()
|
end_date = fields.DateTime()
|
||||||
members_of_committee = fields.List(fields.Nested(ProjectSupervisorCommitteeSchema))
|
members_of_committee = fields.List(fields.Nested(ProjectSupervisorCommitteeSchema))
|
||||||
|
|
||||||
|
class StudentDataItemSchema(Schema):
|
||||||
|
index = fields.Integer()
|
||||||
|
first_name = fields.Str()
|
||||||
|
last_name = fields.Str()
|
||||||
|
|
||||||
|
class GroupDataItemSchema(Schema):
|
||||||
|
name = fields.Str()
|
||||||
|
students = fields.List(fields.Nested(StudentDataItemSchema))
|
||||||
|
|
||||||
|
class AssignedGroupToTermOfDefenceItemSchema(TermOfDefenceStudentItemSchema):
|
||||||
|
group = fields.Nested(GroupDataItemSchema)
|
||||||
|
|
||||||
class TermOfDefenceStudentListSchema(Schema):
|
class TermOfDefenceStudentListSchema(Schema):
|
||||||
term_of_defences = fields.List(fields.Nested(TermOfDefenceStudentItemSchema))
|
term_of_defences = fields.List(fields.Nested(AssignedGroupToTermOfDefenceItemSchema))
|
||||||
|
|
||||||
|
|
||||||
class YearGroupStudentSchema(Schema):
|
class YearGroupStudentSchema(Schema):
|
||||||
|
Loading…
Reference in New Issue
Block a user