[PATCH 5/5] models: Trivial cleanup

Stephen Finucane stephen at that.guru
Tue Oct 11 09:44:50 AEDT 2016


Signed-off-by: Stephen Finucane <stephen at 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



More information about the Patchwork mailing list