Commit acc73817 authored by Jeremy Kerr's avatar Jeremy Kerr
Browse files

Add project argument to set_bundle


Signed-off-by: default avatarJeremy Kerr <jk@ozlabs.org>
parent 3c690974
......@@ -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():
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment