mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 14:32:19 +01:00 
			
		
		
		
	Remove wrong comments
This commit is contained in:
		@@ -1,4 +1 @@
 | 
			
		||||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
 | 
			
		||||
# SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
 | 
			
		||||
default_app_config = 'api.apps.APIConfig'
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,3 @@
 | 
			
		||||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
 | 
			
		||||
# SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
 | 
			
		||||
from django.apps import AppConfig
 | 
			
		||||
from django.utils.translation import gettext_lazy as _
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,13 +1,9 @@
 | 
			
		||||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
 | 
			
		||||
# SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
 | 
			
		||||
from django.conf.urls import url, include
 | 
			
		||||
from django_filters.rest_framework import DjangoFilterBackend
 | 
			
		||||
from rest_framework import routers, serializers, status
 | 
			
		||||
from rest_framework.filters import SearchFilter
 | 
			
		||||
from rest_framework.response import Response
 | 
			
		||||
from rest_framework.viewsets import ModelViewSet
 | 
			
		||||
 | 
			
		||||
from member.models import TFJMUser, Authorization, Solution, Synthesis, MotivationLetter
 | 
			
		||||
from tournament.models import Team, Tournament, Pool
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1,6 @@
 | 
			
		||||
import os
 | 
			
		||||
from datetime import date
 | 
			
		||||
from getpass import getpass
 | 
			
		||||
 | 
			
		||||
from django.core.management import BaseCommand
 | 
			
		||||
from member.models import TFJMUser
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,5 @@
 | 
			
		||||
from django.core.management import BaseCommand, CommandError
 | 
			
		||||
from django.db import transaction
 | 
			
		||||
 | 
			
		||||
from member.models import TFJMUser, Document, Solution, Synthesis, Authorization, MotivationLetter
 | 
			
		||||
from tournament.models import Team, Tournament
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
from django.test import TestCase
 | 
			
		||||
 | 
			
		||||
# Create your tests here.
 | 
			
		||||
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -1,3 +0,0 @@
 | 
			
		||||
from django.test import TestCase
 | 
			
		||||
 | 
			
		||||
# Create your tests here.
 | 
			
		||||
@@ -1,6 +1,4 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
 | 
			
		||||
# SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
 | 
			
		||||
python manage.py compilemessages
 | 
			
		||||
python manage.py makemigrations
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,3 @@
 | 
			
		||||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
 | 
			
		||||
# SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
 | 
			
		||||
from json import dumps as json_dumps
 | 
			
		||||
 | 
			
		||||
from django.forms.widgets import DateTimeBaseInput, NumberInput, TextInput, Widget
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,3 @@
 | 
			
		||||
# Copyright (C) 2018-2020 by BDE ENS Paris-Saclay
 | 
			
		||||
# SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
 | 
			
		||||
from django.conf import settings
 | 
			
		||||
from django.contrib.auth.models import AnonymousUser
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user