2016-05-10 08:39:19 -07:00
|
|
|
from registration.backends.default.views import RegistrationView
|
2013-03-24 15:15:49 -07:00
|
|
|
from utils.forms import SniptRegistrationForm
|
|
|
|
|
2015-07-24 18:28:31 -07:00
|
|
|
|
2013-03-24 15:15:49 -07:00
|
|
|
class SniptRegistrationView(RegistrationView):
|
|
|
|
"""
|
|
|
|
Custom registration view that uses our custom form.
|
|
|
|
"""
|
|
|
|
form_class = SniptRegistrationForm
|
2015-11-05 18:10:25 -08:00
|
|
|
|
2016-03-21 09:35:21 -07:00
|
|
|
def dispatch(self, request, *args, **kwargs):
|
|
|
|
return super(RegistrationView, self).dispatch(request, *args, **kwargs)
|
|
|
|
|
2015-11-05 18:10:25 -08:00
|
|
|
def get_success_url(self, request, user):
|
2016-05-10 09:35:15 -07:00
|
|
|
return '/account/activate/'
|