From 00e96f987688f6a08e724e82bead4151798efdb0 Mon Sep 17 00:00:00 2001 From: kovacspe Date: Sat, 13 Apr 2024 01:01:00 +0200 Subject: [PATCH] Fixnuta nespravna kontrola pri sutaziach vhodnych pre maturantov --- competition/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/competition/models.py b/competition/models.py index 459ac7a8..298a61ac 100644 --- a/competition/models.py +++ b/competition/models.py @@ -77,7 +77,7 @@ class Meta: related_name='competition_permissions') def can_user_participate(self, user): - if self.min_years_until_graduation: + if self.min_years_until_graduation is not None: return user.profile.year_of_graduation-get_school_year_start_by_date() \ >= self.min_years_until_graduation return True