Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use upstream django-registration.

  • Loading branch information...
commit 73f68fe8fa0ccb9b669b619fda75fed06b5a86cf 1 parent 56fcf78
@bmispelon bmispelon authored
Showing with 3 additions and 7 deletions.
  1. +2 −6 accounts/urls.py
  2. +1 −1  deploy-requirements.txt
View
8 accounts/urls.py
@@ -4,18 +4,14 @@
from django.contrib.auth import views as auth_views
from registration.forms import RegistrationFormUniqueEmail
-from registration import views as registration_views
+from registration.backends.default.views import RegistrationView
from . import views as account_views
urlpatterns = patterns('',
url(
r'^register/$',
- registration_views.register,
- {
- 'backend': 'registration.backends.default.DefaultBackend',
- 'form_class': RegistrationFormUniqueEmail,
- },
+ RegistrationView.as_view(form_class=RegistrationFormUniqueEmail),
name='registration_register',
),
url(
View
2  deploy-requirements.txt
@@ -7,7 +7,7 @@ http://bitbucket.org/ubernostrum/django-contact-form/get/tip.bz2
django-haystack == 1.2.7
django-push == 0.4
# django-registration doesn't have a release compatible with Django 1.5 yet.
--e hg+https://bitbucket.org/jscott1971/django-registration@b963cb9#egg=django-registration
+-e hg+https://bitbucket.org/ubernostrum/django-registration@b3c41b3c7f50523b4ecb8267d6d27a918adc2e1f#egg=django-registration
django-secure == 0.1.2
docutils == 0.10
feedparser == 5.1.3

0 comments on commit 73f68fe

Please sign in to comment.
Something went wrong with that request. Please try again.