lint: linted

This commit is contained in:
Андрей Сумин
2025-03-01 02:35:09 +03:00
parent 999f5b0690
commit 33b081e433
7 changed files with 28 additions and 25 deletions
+5 -6
View File
@@ -3,16 +3,15 @@ from django.db import models
from apps.core.models import BaseModel
from apps.user.models import User
class Competition(BaseModel):
class CompetitionType(models.TextChoices):
SOLO = "solo"
class CompetitionParticipationType(models.TextChoices):
EDU = "edu"
COMPETITIVE = "competitive"
title = models.CharField(max_length=100, verbose_name="Название")
description = models.TextField(verbose_name="Описание")
image_url = models.FileField(
@@ -43,10 +42,10 @@ class Competition(BaseModel):
class State(BaseModel):
class StateChoices(models.TextChoices):
NOT_STARTED = 'not_started'
STARTED = 'started'
FINISHED = 'finished'
NOT_STARTED = "not_started"
STARTED = "started"
FINISHED = "finished"
user = models.ForeignKey(User, on_delete=models.CASCADE)
competition = models.ForeignKey(Competition, on_delete=models.CASCADE)
state = models.CharField(choices=StateChoices.choices, max_length=11)
state = models.CharField(choices=StateChoices.choices, max_length=11)