mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 21:27:10 +00:00
feat: added submissions history, formatted
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from ninja import ModelSchema, Schema
|
||||
from ninja import ModelSchema
|
||||
|
||||
from apps.team.models import Team
|
||||
|
||||
@@ -6,10 +6,18 @@ from apps.team.models import Team
|
||||
class CreateTeamSchema(ModelSchema):
|
||||
class Meta:
|
||||
model = Team
|
||||
fields = ("name", "members",)
|
||||
fields = (
|
||||
"name",
|
||||
"members",
|
||||
)
|
||||
|
||||
|
||||
class TeamSchemaOut(ModelSchema):
|
||||
class Meta:
|
||||
model = Team
|
||||
fields = ("id", "name", "owner", "members", )
|
||||
fields = (
|
||||
"id",
|
||||
"name",
|
||||
"owner",
|
||||
"members",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user