From 3cd34563421c2db659107c1c3d2725ad83a227f1 Mon Sep 17 00:00:00 2001 From: Kedar Aitawdekar Date: Thu, 26 Mar 2015 20:52:09 +0530 Subject: Registration form url modified to render as per modified EmailRegistrationForm class --- gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/urls') diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py b/gnowsys-ndf/gnowsys_ndf/ndf/urls/__init__.py index e7c4d6d1..47eee38f 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/'), -- cgit v1.2.3-70-g09d2