RANDOMSEC-19 #2

Merged
s470625 merged 12 commits from RANDOMSEC-19 into master 2022-01-25 16:47:25 +01:00
Showing only changes of commit 04e87711c2 - Show all commits

View File

@ -0,0 +1,16 @@
from django.contrib.auth.forms import UserCreationForm
from django.urls import reverse_lazy
from django.views import generic
from django_registration.forms import User
class SignUpForm(UserCreationForm):
class Meta:
model = User
fields = ('username', 'email',)
class SignUpView(generic.CreateView):
form_class = SignUpForm
success_url = reverse_lazy('login')
template_name = 'registration/signup.html'