summaryrefslogtreecommitdiffstats
path: root/apps/patchwork/views
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2012-12-30 13:21:01 +0800
committerJeremy Kerr <jk@ozlabs.org>2012-12-30 13:59:52 +0800
commitaa09aee4fc1114a53ef4abe82ced0a725faf512c (patch)
treeedb5dd8ad86dc16e3813d322116dc258464c9765 /apps/patchwork/views
parent640b69c56a85c2c04d4dc57dbe5dc9ebe43633cf (diff)
downloadpatchwork-aa09aee4fc1114a53ef4abe82ced0a725faf512c.tar.bz2
patchwork-aa09aee4fc1114a53ef4abe82ced0a725faf512c.tar.xz
tests/bundle: Add bundle update tests, fix missing action behaviour
Add a couple of tests for the bundle update views. This exposes a problem with no action is specified, so fix this too. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/views')
-rw-r--r--apps/patchwork/views/bundle.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/patchwork/views/bundle.py b/apps/patchwork/views/bundle.py
index 058153b..3846d23 100644
--- a/apps/patchwork/views/bundle.py
+++ b/apps/patchwork/views/bundle.py
@@ -142,6 +142,9 @@ def bundle(request, bundle_id):
form = BundleForm(request.POST, instance = bundle)
if form.is_valid():
form.save()
+
+ else:
+ form = BundleForm(instance = bundle)
else:
form = BundleForm(instance = bundle)