mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 03:57:09 +00:00
add verbose names to submissions check status
This commit is contained in:
@@ -94,9 +94,9 @@ class CompetitionTaskAttachment(BaseModel):
|
||||
|
||||
class CompetitionTaskSubmission(BaseModel):
|
||||
class StatusChoices(models.TextChoices):
|
||||
SENT = "sent"
|
||||
CHECKING = "checking"
|
||||
CHECKED = "checked"
|
||||
SENT = "sent", "Отправлено на проверку"
|
||||
CHECKING = "checking", "Проверка"
|
||||
CHECKED = "checked", "Проверено"
|
||||
|
||||
def submission_content_upload_to(instance, filename) -> str:
|
||||
return f"submissions/{instance.id}/content/{filename}"
|
||||
|
||||
Reference in New Issue
Block a user