1
0
mirror of https://gitlab.com/animath/si/plateforme-corres2math.git synced 2025-06-22 19:18:22 +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,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):