]> git.ozlabs.org Git - patchwork/commit
forms: Only pass post data to multiplepatchform if that was what was submitted
authorJeremy Kerr <jk@ozlabs.org>
Sun, 30 Dec 2012 05:57:18 +0000 (13:57 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Sun, 30 Dec 2012 05:59:52 +0000 (13:59 +0800)
commit627f5aca263da2513fe6d592becd3b505d97dd21
treecb783b8687d61b62b10e1352a9c4dcf52d4229d0
parentd0fca5754590a0322b27152269a1f9bc71690bf7
forms: Only pass post data to multiplepatchform if that was what was submitted

When updating bundles, we get a spurious error message in the
MultiplePatchForm; it's performing validation on the blank form data.

This change only passes the post data to the MuliplePatchForm if we
detect (through data['form']) that it was the MultiplePatchForm that was
submitted.

This fixes the current testsuite failure.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/views/__init__.py