Commit 148afb5f authored by Arkadiusz Hiler's avatar Arkadiusz Hiler

urls: Fix todo_list naming

Both urls should be named, and don't pluralize the name when used.
Signed-off-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
parent fb3fc1d2
......@@ -27,7 +27,7 @@ Contributor to
<div class="box">
<h2>Todo</h2>
{% if user.profile.n_todo %}
<p>Your <a href="{% url 'todo_lists' %}">todo
<p>Your <a href="{% url 'todo_list' %}">todo
list</a> contains {{ user.profile.n_todo }}
item{{ user.profile.n_todo|pluralize:"s" }}.</p>
{% else %}
......
......@@ -127,7 +127,8 @@ urlpatterns = [
name='user'),
url(r'^user/todo/$', patchwork.views.user.todo_lists,
name='todo_list'),
url(r'^user/todo/(?P<project_id>[^/]+)/$', patchwork.views.user.todo_list),
url(r'^user/todo/(?P<project_id>[^/]+)/$', patchwork.views.user.todo_list,
name='todo_list'),
url(r'^user/bundles/$', patchwork.views.bundle.bundles,
name='bundle_list'),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment