diff options
-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 |