Skip to content

Commit

Permalink
Fixnuta nespravna kontrola pri sutaziach vhodnych pre maturantov
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacspe committed Apr 12, 2024
1 parent b138194 commit 00e96f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion competition/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00e96f9

Please sign in to comment.