]> git.ozlabs.org Git - patchwork/commitdiff
Add project argument to set_bundle
authorJeremy Kerr <jk@ozlabs.org>
Thu, 21 Aug 2008 09:25:35 +0000 (17:25 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 21 Aug 2008 09:25:35 +0000 (17:25 +0800)
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/utils.py

index 72eff4f764d81f88d9c2f4be239245b2cdc60c7b..cecf51282f38aa83d6d7b61f03468dd129b103cd 100644 (file)
@@ -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():