From 7498f1b96a2739789eb81d59191a63aac88f31d0 Mon Sep 17 00:00:00 2001 From: kovacspe Date: Sat, 13 Apr 2024 10:24:54 +0200 Subject: [PATCH] Competition should not be nullable (#354) --- competition/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/competition/models.py b/competition/models.py index 298a61a..41b11cf 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(