summaryrefslogtreecommitdiffstats
path: root/apps/patchwork
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2008-08-21 17:25:35 +0800
committerJeremy Kerr <jk@ozlabs.org>2008-08-21 17:25:35 +0800
commitacc73817cbacac4c5fd2aa5f0f354b9824281162 (patch)
tree3612b6d3950e45139c0928a806a7d1046b642831 /apps/patchwork
parent3c6909740c2b00c31a9b39b5ef8e0ce7f588f685 (diff)
downloadpatchwork-acc73817cbacac4c5fd2aa5f0f354b9824281162.tar.bz2
patchwork-acc73817cbacac4c5fd2aa5f0f354b9824281162.tar.xz
Add project argument to set_bundle
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork')
-rw-r--r--apps/patchwork/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/patchwork/utils.py b/apps/patchwork/utils.py
index 72eff4f..cecf512 100644
--- a/apps/patchwork/utils.py
+++ b/apps/patchwork/utils.py
@@ -88,7 +88,7 @@ class Order(object):
return q
bundle_actions = ['create', 'add', 'remove']
-def set_bundle(user, action, data, patches, context):
+def set_bundle(user, project, action, data, patches, context):
# set up the bundle
bundle = None
if action == 'create':
@@ -147,7 +147,7 @@ def set_patches(user, project, action, data, patches, context):
# this may be a bundle action, which doesn't modify a patch. in this
# case, don't require a valid form, or patch editing permissions
if action in bundle_actions:
- errors = set_bundle(user, action, data, patches, context)
+ errors = set_bundle(user, project, action, data, patches, context)
return (errors, form)
if not form.is_valid():