arrowcounter/user/views.py

9 lines
274 B
Python
Raw Normal View History

from django.views import generic
from django.urls import reverse_lazy
from .forms import RegistrationForm
class Registration(generic.CreateView):
form_class = RegistrationForm
success_url = reverse_lazy('login')
template_name = 'registration/registration.html'