This commit is contained in:
2024-12-11 23:22:09 +01:00
parent 4b86b33872
commit 9b7944c14d
53 changed files with 2054 additions and 249 deletions

View File

@@ -7,15 +7,16 @@ class Correction(models.Model):
candidate = models.ForeignKey(
"Candidate",
on_delete=models.CASCADE,
related_name="corrections_used",
related_name="corrections",
verbose_name=_("candidate"),
)
quiz = models.ForeignKey(
"Quiz",
on_delete=models.CASCADE,
related_name="corrections_used",
related_name="corrections",
verbose_name=_("quiz"),
)
amount = models.FloatField(verbose_name=_("amount"), default=1)
class Meta(TypedModelMeta):
unique_together = ("candidate", "quiz")