mirror of
https://gitlab.com/animath/si/plateforme-corres2math.git
synced 2025-07-06 06:03:53 +02:00
More constraints on linting (surely removed in the future)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
from django.db.models.signals import pre_save, post_save
|
||||
from django.db.models.signals import post_save, pre_save
|
||||
|
||||
|
||||
class RegistrationConfig(AppConfig):
|
||||
|
@ -1,9 +1,9 @@
|
||||
from django import forms
|
||||
from django.contrib.auth.forms import UserCreationForm
|
||||
from django.contrib.auth.models import User
|
||||
from django import forms
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
|
||||
from .models import StudentRegistration, CoachRegistration, AdminRegistration
|
||||
from .models import AdminRegistration, CoachRegistration, StudentRegistration
|
||||
|
||||
|
||||
class SignupForm(UserCreationForm):
|
||||
|
@ -1,3 +1,4 @@
|
||||
from corres2math.tokens import email_validation_token
|
||||
from django.contrib.sites.models import Site
|
||||
from django.db import models
|
||||
from django.template import loader
|
||||
@ -5,7 +6,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
|
||||
|
||||
|
||||
class Registration(PolymorphicModel):
|
||||
|
@ -1,6 +1,6 @@
|
||||
from django.urls import path
|
||||
|
||||
from .views import SignupView, UserValidationEmailSentView, UserResendValidationEmailView, UserValidateView
|
||||
from .views import SignupView, UserResendValidationEmailView, UserValidateView, UserValidationEmailSentView
|
||||
|
||||
app_name = "registration"
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
from corres2math.tokens import email_validation_token
|
||||
from django.conf import settings
|
||||
from django.contrib.auth.mixins import LoginRequiredMixin
|
||||
from django.contrib.auth.models import User
|
||||
from django.core.exceptions import ValidationError
|
||||
from django.db import transaction
|
||||
from django.shortcuts import resolve_url, redirect
|
||||
from django.shortcuts import redirect, resolve_url
|
||||
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 django.views.generic import CreateView, DetailView, TemplateView
|
||||
|
||||
from .forms import SignupForm, StudentRegistrationForm, CoachRegistrationForm
|
||||
from .forms import CoachRegistrationForm, SignupForm, StudentRegistrationForm
|
||||
|
||||
|
||||
class SignupView(CreateView):
|
||||
|
Reference in New Issue
Block a user