1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-25 23:07:31 +02:00

Remove wrong comments

This commit is contained in:
Yohann D'ANELLO
2020-05-08 16:07:51 +02:00
parent 4b777d90b5
commit 397f243c82
11 changed files with 2 additions and 28 deletions

View File

@ -65,7 +65,7 @@ class OrganizerForm(forms.ModelForm):
class TeamForm(forms.ModelForm):
tournament = forms.ModelChoiceField(
Tournament.objects.filter(date_inscription__gte=timezone.now().date(), final=False),
Tournament.objects.filter(date_inscription__gte=timezone.now(), final=False),
)
class Meta:
@ -87,7 +87,7 @@ class TeamForm(forms.ModelForm):
if Team.objects.filter(name=cleaned_data["name"], year=os.getenv("TFJM_YEAR")).exists():
self.add_error("name", _("This name is already used."))
if cleaned_data["tournament"].date_inscription < timezone.now().date():
if cleaned_data["tournament"].date_inscription < timezone.now:
self.add_error("tournament", _("This tournament is already closed."))
return cleaned_data

View File

@ -1,3 +0,0 @@
from django.test import TestCase
# Create your tests here.