mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 07:27:10 +00:00
feat: added state to competition response
This commit is contained in:
@@ -60,5 +60,5 @@ class State(BaseModel):
|
||||
|
||||
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, default=StateChoices.NOT_STARTED.value)
|
||||
changed_at = models.DateTimeField(default=datetime.now)
|
||||
|
||||
Reference in New Issue
Block a user