2016-11-04 08:46:50 -07:00
|
|
|
from registration.backends.simple.views import RegistrationView
|
2016-11-01 12:34:10 -07:00
|
|
|
from utils.forms import SniptRegistrationForm
|
|
|
|
|
|
|
|
|
|
|
|
class SniptRegistrationView(RegistrationView):
|
|
|
|
"""
|
|
|
|
Custom registration view that uses our custom form.
|
|
|
|
"""
|
|
|
|
form_class = SniptRegistrationForm
|
|
|
|
|
|
|
|
def dispatch(self, request, *args, **kwargs):
|
|
|
|
return super(RegistrationView, self).dispatch(request, *args, **kwargs)
|
|
|
|
|
|
|
|
def get_success_url(self, request):
|
2016-11-04 08:46:50 -07:00
|
|
|
return '/login-redirect'
|