]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
views: Correct typos in reverse paths
authorStephen Finucane <stephen.finucane@intel.com>
Thu, 18 Feb 2016 11:36:29 +0000 (11:36 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 18 Feb 2016 21:12:41 +0000 (21:12 +0000)
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>
patchwork/templates/patchwork/profile.html
patchwork/templates/patchwork/todo-lists.html
patchwork/views/user.py

index 5bd3e13bd62db2bff4704d7e4849e2972d20432f..3d1c04f7b91fb94e267c18e3fdf8859184b986f0 100644 (file)
@@ -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 %}
index 352ca5d1123e0352d1da6de793709eced5023cc1..ea65ea05461313ab1ec0d7c48b76d0bab7f25c7f 100644 (file)
@@ -17,7 +17,7 @@
 {% 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>
index dd5eadae074fa5a3d8f1d6818c8db41c9eea4793..78cb0d77856a00e3b1e76dd5a255500887ad9c5e 100644 (file)
@@ -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)