add points field to task schema

This commit is contained in:
Timur
2025-03-02 08:50:16 +03:00
parent 2c311fe929
commit e953219331
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -16,6 +16,7 @@ class TaskOutSchema(ModelSchema):
"description", "description",
"type", "type",
"in_competition_position", "in_competition_position",
"points",
] ]
+2 -2
View File
@@ -26,10 +26,10 @@ class Competition(BaseModel):
upload_to=image_url_upload_to, upload_to=image_url_upload_to,
) )
end_date = models.DateTimeField( end_date = models.DateTimeField(
verbose_name="дедлайн участия", null=True, blank=True verbose_name="окончание соревнования", null=True, blank=True
) )
start_date = models.DateTimeField( start_date = models.DateTimeField(
verbose_name="дедлайн участия", null=True, blank=True verbose_name="начало соревнования", null=True, blank=True
) )
type = models.CharField( type = models.CharField(
max_length=11, max_length=11,