Feat: add post student

This commit is contained in:
2022-12-27 11:57:50 +01:00
parent 9ec183c3a5
commit 4a16444835
3 changed files with 49 additions and 15 deletions

View File

@@ -29,5 +29,5 @@ class Student:
def to_tuple(self) -> tuple:
return (self.id, self.name, self.tribe.name)
def to_dict(self) -> dict:
def to_dict(self, full_tribe=False) -> dict:
return {"id": self.id, "name": self.name, "tribe_name": self.tribe.name}