From 99b4a5c8e57459f5407c94a4b45fa06a199afadc Mon Sep 17 00:00:00 2001 From: Stephen Finucane Date: Thu, 18 Feb 2016 11:36:29 +0000 Subject: [PATCH] views: Correct typos in reverse paths 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 --- patchwork/templates/patchwork/profile.html | 2 +- patchwork/templates/patchwork/todo-lists.html | 2 +- patchwork/views/user.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/patchwork/templates/patchwork/profile.html b/patchwork/templates/patchwork/profile.html index 5bd3e13b..3d1c04f7 100644 --- a/patchwork/templates/patchwork/profile.html +++ b/patchwork/templates/patchwork/profile.html @@ -27,7 +27,7 @@ Contributor to

Todo

{% if user.profile.n_todo_patches %} -

Your todo +

Your todo list contains {{ user.profile.n_todo_patches }} patch{{ user.profile.n_todo_patches|pluralize:"es" }}.

{% else %} diff --git a/patchwork/templates/patchwork/todo-lists.html b/patchwork/templates/patchwork/todo-lists.html index 352ca5d1..ea65ea05 100644 --- a/patchwork/templates/patchwork/todo-lists.html +++ b/patchwork/templates/patchwork/todo-lists.html @@ -17,7 +17,7 @@ {% for todo_list in todo_lists %} {{ todo_list.project.name }} {{ todo_list.n_patches }} diff --git a/patchwork/views/user.py b/patchwork/views/user.py index dd5eadae..78cb0d77 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.47.3