From 8fa09ee2cfbd2c5cdca2c2820195895d33162b36 Mon Sep 17 00:00:00 2001 From: kovacspe Date: Sat, 13 Apr 2024 01:08:09 +0200 Subject: [PATCH] Competition should not be nullable --- competition/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/competition/models.py b/competition/models.py index 459ac7a8..fe3035ed 100644 --- a/competition/models.py +++ b/competition/models.py @@ -146,7 +146,7 @@ class Meta: ] competition = models.ForeignKey( - Competition, null=True, on_delete=models.CASCADE) + Competition, on_delete=models.CASCADE) year = models.PositiveSmallIntegerField(verbose_name='ročník', blank=True) school_year = models.CharField(