Signed-off-by: Stephen Finucane <step...@that.guru> --- patchwork/models.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/patchwork/models.py b/patchwork/models.py index 3abae3c..229b701 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -20,7 +20,8 @@ from __future__ import absolute_import -from collections import Counter, OrderedDict +from collections import Counter +from collections import OrderedDict import datetime import hashlib import random @@ -154,7 +155,8 @@ class UserProfile(models.Model): qs = Patch.objects qs = qs.filter(archived=False).filter( - delegate=self.user).filter(state__in=State.objects.filter( + delegate=self.user).filter( + state__in=State.objects.filter( action_required=True).values('pk').query) return qs -- 2.7.4 _______________________________________________ Patchwork mailing list Patchwork@lists.ozlabs.org https://lists.ozlabs.org/listinfo/patchwork