[PATCH] views: Populate bundles for 'todo' view
Stephen Finucane
stephen at that.guru
Sun Sep 30 07:34:49 AEST 2018
Signed-off-by: Stephen Finucane <stephen at that.guru>
Closes: #213
Cc: Simon Glass <sjg at chromium.org>
---
patchwork/views/user.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/patchwork/views/user.py b/patchwork/views/user.py
index 36cd4b9d..af1da121 100644
--- a/patchwork/views/user.py
+++ b/patchwork/views/user.py
@@ -221,8 +221,10 @@ def todo_list(request, project_id):
filter_settings=filter_settings,
patches=patches)
- context['action_required_states'] = \
- State.objects.filter(action_required=True).all()
+ context['bundles'] = request.user.bundles.all()
+ context['action_required_states'] = State.objects.filter(
+ action_required=True).all()
+
return render(request, 'patchwork/todo-list.html', context)
--
2.17.1
More information about the Patchwork
mailing list