This commit is contained in:
Corentin Chary 2013-09-29 11:00:20 +02:00
parent 8c6bdebcab
commit c130e59b28
3 changed files with 7 additions and 2 deletions

View File

@ -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>

View File

@ -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

View File

@ -0,0 +1,5 @@
from registration.backends.default.views import RegistrationView
from forms import RecaptchaRegistrationForm
class RecaptchaRegistrationView(RegistrationView):
form_class = RecaptchaRegistrationForm