From c976faa3b0a999a58ec8fcce05ce4a4c89000253 Mon Sep 17 00:00:00 2001 From: vikibrezinova Date: Sat, 13 Apr 2024 13:24:09 +0200 Subject: [PATCH] change start to end in school year check in can user participate --- competition/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/competition/models.py b/competition/models.py index 490bddc..2975daf 100644 --- a/competition/models.py +++ b/competition/models.py @@ -79,7 +79,7 @@ class Meta: def can_user_participate(self, user): if self.min_years_until_graduation is not None: - return user.profile.year_of_graduation-get_school_year_start_by_date() \ + return user.profile.year_of_graduation-get_school_year_end_by_date() \ >= self.min_years_until_graduation return True