]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
views: Populate bundles for 'todo' view
authorStephen Finucane <stephen@that.guru>
Sat, 29 Sep 2018 21:33:36 +0000 (22:33 +0100)
committerStephen Finucane <stephen@that.guru>
Sat, 6 Oct 2018 19:30:37 +0000 (20:30 +0100)
Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #213
(cherry picked from commit caab3e3ec93079b7dc6b120e353535983e66ba79)

patchwork/views/user.py

index 4a4958ab170a854640c4ad2bc01938f9bf9c7062..0c2914b3bd7370c6bc754b94c21a08341312c3d4 100644 (file)
@@ -235,8 +235,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)