~dooferlad/patchwork/niceties

Viewing all changes in revision 254.

  • Committer: Jeremy Kerr
  • Author(s): Guilherme Salgado
  • Date: 2011-04-14 07:07:43 UTC
  • Revision ID: git-v1:c3291f5d18445cd91b540342d31d76254b32376c
forms: Fix MultipleBooleanField.to_python when the field value is missing

If you write a test for, say, the bundle form of a patch list, you'd
still have to specify the 'no change' value to other form (e.g. the
multiple update one) fields using MultipleBooleanField or else it'd
raise a ValueError when field.clean() is called as part of
form._get_errors().

Signed-off-by: Guilherme Salgado <guilherme.salgado@linaro.org>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: