]> git.ozlabs.org Git - patchwork/commit
forms: change MultiplePatchForm from a ModelForm to a Form
authorJeremy Kerr <jk@ozlabs.org>
Fri, 3 Sep 2010 03:29:28 +0000 (11:29 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Fri, 3 Sep 2010 04:44:59 +0000 (12:44 +0800)
commitc24e22bb55d5bf6cf523fa9ad3f9b02e07e87566
treef7f55ecc65c494369e7fc341fd97df6aae80bd2a
parent01733fbdd54ca6e678ca5edf008ae17cea348905
forms: change MultiplePatchForm from a ModelForm to a Form

ModelForm was causing validation issues, especially with no-change
fields on required model fields.

Add a test for updating a required field (state) through
MultiplePatchForm.

Change it to a normal form, and call instance.setattr manually. This
makes the new test pass.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
apps/patchwork/forms.py
apps/patchwork/tests/updates.py