1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

Remove sending email after registration, and clean code

This commit is contained in:
xiez
2012-04-21 11:05:59 +08:00
parent 62bf4b11ce
commit 00f9575c74
8 changed files with 38 additions and 33 deletions

View File

@@ -7,7 +7,6 @@ from registration.views import register
from seahub.base.accounts import RegistrationForm
urlpatterns = patterns('',
url(r'^activate/complete/$',
direct_to_template,
@@ -24,7 +23,9 @@ urlpatterns = patterns('',
url(r'^register/$',
register,
{ 'backend': 'seahub.base.accounts.RegistrationBackend',
'form_class': RegistrationForm },
'form_class': RegistrationForm,
'success_url': '/',
},
name='registration_register'),
url(r'^register/complete/$',
direct_to_template,