From c130e59b28d4989321ee59c8d4efcff0354bd61d Mon Sep 17 00:00:00 2001 From: Corentin Chary Date: Sun, 29 Sep 2013 11:00:20 +0200 Subject: [PATCH] fixes --- euscanwww/djeuscan/templates/_base.html | 2 +- .../djeuscan/templates/registration/activation_email.txt | 2 +- euscanwww/euscan_captcha/views.py | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 euscanwww/euscan_captcha/views.py 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 @@
  • Logout
  • {% else %}
  • Login
  • -
  • Register
  • +
  • Register
  • {% endif %}
  • ---
  • 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