diff options
author | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-03-26 20:52:09 +0530 |
---|---|---|
committer | Kedar Aitawdekar <kedar2a@gmail.com> | 2015-03-26 20:52:09 +0530 |
commit | 3cd34563421c2db659107c1c3d2725ad83a227f1 (patch) | |
tree | cbecb3932f5519f828274f699407a2d64383107c /gnowsys-ndf/gnowsys_ndf/ndf/urls | |
parent | 56e652128413a1d04a96068275b45d7427a6d775 (diff) | |
download | gnowsys-3cd34563421c2db659107c1c3d2725ad83a227f1.tar.gz |
Registration form url modified to render as per modified EmailRegistrationForm class
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls')
-rw-r--r-- | gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py index e7c4d6d..47eee38 100644 --- a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py +++ b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py @@ -7,11 +7,10 @@ from django.views.generic import TemplateView from registration.backends.default.views import RegistrationView from registration.backends.default.views import ActivationView -from registration_email.forms import EmailRegistrationForm from jsonrpc import jsonrpc_site -from gnowsys_ndf.ndf.views.email_registration import password_reset_email, password_reset_error # from gnowsys_ndf.ndf.forms import * +from gnowsys_ndf.ndf.views.email_registration import password_reset_email, password_reset_error, GstudioEmailRegistrationForm from gnowsys_ndf.ndf.forms import UserChangeform, UserResetform from gnowsys_ndf.ndf.views.home import homepage, landing_page from gnowsys_ndf.ndf.views.methods import tag_info @@ -151,9 +150,10 @@ urlpatterns = patterns('', lambda request, user: '/accounts/activate/complete/'), ), name='registration_activate'), + url(r'^accounts/register/$', RegistrationView.as_view( - form_class=EmailRegistrationForm, + form_class=GstudioEmailRegistrationForm, get_success_url=getattr( settings, 'REGISTRATION_EMAIL_REGISTER_SUCCESS_URL', lambda request, user: '/accounts/register/complete/'), |