There are two issues to do with reverse URLs:
* Some reverse URL names are incorrect
* One URL uses the old module path-style reference that's been
deprecated in Django 1.9
Correct both issues.
Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
<div class="box">
<h2>Todo</h2>
{% if user.profile.n_todo_patches %}
- <p>Your <a href="{% url 'user-todo' %}">todo
+ <p>Your <a href="{% url 'user-todos' %}">todo
list</a> contains {{ user.profile.n_todo_patches }}
patch{{ user.profile.n_todo_patches|pluralize:"es" }}.</p>
{% else %}
{% for todo_list in todo_lists %}
<tr>
<td><a
- href="{% url 'user-todo-project' project_id=todo_list.project.linkname %}"
+ href="{% url 'user-todo' project_id=todo_list.project.linkname %}"
>{{ todo_list.project.name }}</a></td>
<td class="numberformat">{{ todo_list.n_patches }}</td>
</tr>
{'delegate': request.user})]
context = generic_list(request, project,
- 'patchwork.views.user.todo_list',
+ 'user-todo',
view_args={'project_id': project.linkname},
filter_settings=filter_settings,
patches=patches)