]> 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:26:33 +0000 (20:26 +0100)
Signed-off-by: Stephen Finucane <stephen@that.guru>
Closes: #213
patchwork/views/user.py

index 4b6b0e6018e154ca20251e1dada723098ea4daeb..6b09adb290042d271b0ee784aeb1ee48b5c36fc4 100644 (file)
@@ -228,8 +228,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)