mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-08 03:30:20 +02:00
Add Question model
This commit is contained in:
@ -230,6 +230,22 @@ class Video(models.Model):
|
||||
verbose_name_plural = _("videos")
|
||||
|
||||
|
||||
class Question(models.Model):
|
||||
"""
|
||||
Question to ask to the team that sent a solution.
|
||||
"""
|
||||
participation = models.ForeignKey(
|
||||
Participation,
|
||||
on_delete=models.CASCADE,
|
||||
verbose_name=_("participation"),
|
||||
related_name="questions",
|
||||
)
|
||||
|
||||
question = models.TextField(
|
||||
verbose_name=_("question"),
|
||||
)
|
||||
|
||||
|
||||
class Phase(models.Model):
|
||||
"""
|
||||
The Phase model corresponds to the dates of the phase.
|
||||
|
Reference in New Issue
Block a user