1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-23 17:56:35 +02:00

Try to add CI

This commit is contained in:
Yohann D'ANELLO
2020-09-24 11:44:43 +02:00
parent f0459838d4
commit a68a7b681d
14 changed files with 72 additions and 20 deletions

View File

@ -1,6 +1,7 @@
from django.contrib.auth.models import User
from rest_framework import serializers
class UserSerializer(serializers.ModelSerializer):
"""
Serialize a User object into JSON.

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

View File

@ -2,7 +2,6 @@ from django.core.validators import RegexValidator
from django.db import models
from django.db.models import Index
from django.utils.crypto import get_random_string
from django.utils.functional import lazy
from django.utils.text import format_lazy
from django.utils.translation import gettext_lazy as _
@ -120,7 +119,7 @@ class Video(models.Model):
def __str__(self):
return _("Video of team {name} ({trigram})")\
.format(name=self.participation.team.name, trigram = self.participation.team.trigram)
.format(name=self.participation.team.name, trigram=self.participation.team.trigram)
class Meta:
verbose_name = _("video")

View File

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

View File

@ -5,8 +5,8 @@ from django.urls import reverse_lazy
from django.utils.translation import gettext_lazy as _
from django.views.generic import CreateView, FormView, DetailView, RedirectView, UpdateView
from participation.forms import TeamForm, JoinTeamForm, ParticipationForm
from participation.models import Team
from .forms import TeamForm, JoinTeamForm, ParticipationForm
from .models import Team
class CreateTeamView(LoginRequiredMixin, CreateView):

View File

@ -1,3 +0,0 @@
from django.contrib import admin
# Register your models here.

View File

@ -3,7 +3,7 @@ from django.contrib.auth.models import User
from django import forms
from django.utils.translation import gettext_lazy as _
from registration.models import StudentRegistration, CoachRegistration, AdminRegistration
from .models import StudentRegistration, CoachRegistration, AdminRegistration
class SignupForm(UserCreationForm):

View File

@ -5,7 +5,6 @@ from django.utils.encoding import force_bytes
from django.utils.http import urlsafe_base64_encode
from django.utils.translation import gettext_lazy as _
from polymorphic.models import PolymorphicModel
from corres2math.tokens import email_validation_token

View File

@ -1,6 +1,6 @@
from django.contrib.auth.models import User
from registration.models import AdminRegistration, Registration
from .models import AdminRegistration, Registration
def set_username(instance, **_):

View File

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

View File

@ -8,8 +8,8 @@ from django.urls import reverse_lazy
from django.utils.http import urlsafe_base64_decode
from django.utils.translation import gettext_lazy as _
from django.views.generic import CreateView, TemplateView, DetailView
from corres2math.tokens import email_validation_token
from .forms import SignupForm, StudentRegistrationForm, CoachRegistrationForm