aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2015-01-06 11:21:37 +0100
committerJeremy Kerr <jk@ozlabs.org>2015-03-22 21:06:23 +0800
commit0808013ad9e4780a7c4eff126de21e45ef220cb2 (patch)
tree89d510532da3037804b9c7cde92b80ddbb18515b
parent8904a7dcaf959da8db4a9a5d92b91a61eed05201 (diff)
downloadpatchwork-0808013ad9e4780a7c4eff126de21e45ef220cb2.tar
patchwork-0808013ad9e4780a7c4eff126de21e45ef220cb2.tar.gz
views/xmlrpc: fix xmlrpc delegate filtering
Trying to use pwclient list -d 'johannes@sipsolutions.net' doesn't result in any patches listed - it seems that the filter is constructed wrongly on the xmlrpc server side (going by how the submitter filter is done.) Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
-rw-r--r--apps/patchwork/views/xmlrpc.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/patchwork/views/xmlrpc.py b/apps/patchwork/views/xmlrpc.py
index ca84c94..1235ead 100644
--- a/apps/patchwork/views/xmlrpc.py
+++ b/apps/patchwork/views/xmlrpc.py
@@ -326,6 +326,9 @@ def patch_list(filter={}):
elif parts[0] == 'submitter_id':
dfilter['submitter'] = Person.objects.filter(id =
filter[key])[0]
+ elif parts[0] == 'delegate_id':
+ dfilter['delegate'] = Person.objects.filter(id =
+ filter[key])[0]
elif parts[0] == 'state_id':
dfilter['state'] = State.objects.filter(id =
filter[key])[0]