Fix form url

This commit is contained in:
Michal Čihař 2012-03-06 15:38:52 +01:00
parent 8ba8c85ce3
commit af1edf6afb
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@
</div> </div>
{% endif %} {% endif %}
<form action="{% url 'registration.views.register' %}" method="post" accept-charset="utf-8"> <form action="{% url 'weblate_register' %}" method="post" accept-charset="utf-8">
{% csrf_token %} {% csrf_token %}
<table> <table>
{{ form.as_table }} {{ form.as_table }}

View File

@ -25,7 +25,7 @@ urlpatterns = patterns('',
url(r'^accounts/register/$', 'registration.views.register', { url(r'^accounts/register/$', 'registration.views.register', {
'form_class': RegistrationForm, 'form_class': RegistrationForm,
'extra_context': {'title': _('User registration')}}, 'extra_context': {'title': _('User registration')}},
name='registration_register'), name='weblate_register'),
url(r'^accounts/', include('registration.urls')), url(r'^accounts/', include('registration.urls')),
url(r'^accounts/profile/', 'accounts.views.profile'), url(r'^accounts/profile/', 'accounts.views.profile'),