diff options
author | Corentin Chary <corentin.chary@gmail.com> | 2013-09-29 11:00:20 +0200 |
---|---|---|
committer | Corentin Chary <corentin.chary@gmail.com> | 2013-09-29 11:01:09 +0200 |
commit | c130e59b28d4989321ee59c8d4efcff0354bd61d (patch) | |
tree | 66950cf3743566b04c7f4b63fb6ba146d9b639ae | |
parent | fixes (diff) | |
download | euscan-c130e59b28d4989321ee59c8d4efcff0354bd61d.tar.gz euscan-c130e59b28d4989321ee59c8d4efcff0354bd61d.tar.bz2 euscan-c130e59b28d4989321ee59c8d4efcff0354bd61d.zip |
fixes
-rw-r--r-- | euscanwww/djeuscan/templates/_base.html | 2 | ||||
-rw-r--r-- | euscanwww/djeuscan/templates/registration/activation_email.txt | 2 | ||||
-rw-r--r-- | euscanwww/euscan_captcha/views.py | 5 |
3 files changed, 7 insertions, 2 deletions
diff --git a/euscanwww/djeuscan/templates/_base.html b/euscanwww/djeuscan/templates/_base.html index 03bd5ff..dedc70e 100644 --- a/euscanwww/djeuscan/templates/_base.html +++ b/euscanwww/djeuscan/templates/_base.html @@ -62,7 +62,7 @@ <li><a href="{% url "django.contrib.auth.views.logout" %}">Logout</a></li> {% else %} <li><a href="{% url "django.contrib.auth.views.login" %}?next={% url "accounts_index" %}">Login</a></li> - <li><a href="{% url "registration.views.register" %}">Register</a></li> + <li><a href="{% url "registration_register" %}">Register</a></li> {% endif %} <li>---</li> diff --git a/euscanwww/djeuscan/templates/registration/activation_email.txt b/euscanwww/djeuscan/templates/registration/activation_email.txt index 2e4d942..55b583b 100644 --- a/euscanwww/djeuscan/templates/registration/activation_email.txt +++ b/euscanwww/djeuscan/templates/registration/activation_email.txt @@ -5,7 +5,7 @@ and your address will be removed from our records. To activate this account, please click the following link within the next {{ expiration_days }} days: -http://{{site.domain}}{% url registration_activate activation_key %} +http://{{site.domain}}{% url 'registration_activate' activation_key=activation_key %} Sincerely, {{ site.name }} Management diff --git a/euscanwww/euscan_captcha/views.py b/euscanwww/euscan_captcha/views.py new file mode 100644 index 0000000..45ff0be --- /dev/null +++ b/euscanwww/euscan_captcha/views.py @@ -0,0 +1,5 @@ +from registration.backends.default.views import RegistrationView +from forms import RecaptchaRegistrationForm + +class RecaptchaRegistrationView(RegistrationView): + form_class = RecaptchaRegistrationForm |