[PATCH] views: Correct typos in reverse paths

Stephen Finucane stephen.finucane at intel.com
Fri Feb 19 04:34:07 AEDT 2016


There are two issues to do with reverse URLs:

* One reverse URL name is incorrecy
* 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 at intel.com>
---
 patchwork/templates/patchwork/profile.html | 2 +-
 patchwork/views/user.py                    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/patchwork/templates/patchwork/profile.html b/patchwork/templates/patchwork/profile.html
index 5bd3e13..3d1c04f 100644
--- a/patchwork/templates/patchwork/profile.html
+++ b/patchwork/templates/patchwork/profile.html
@@ -27,7 +27,7 @@ Contributor to
 <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 %}
diff --git a/patchwork/views/user.py b/patchwork/views/user.py
index dd5eada..78cb0d7 100644
--- a/patchwork/views/user.py
+++ b/patchwork/views/user.py
@@ -216,7 +216,7 @@ def todo_list(request, project_id):
                         {'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)
-- 
2.0.0



More information about the Patchwork mailing list