diff options
author | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-01-21 19:24:36 +0100 |
---|---|---|
committer | Elrond <elrond+mediagoblin.org@samba-tng.org> | 2012-01-21 19:24:36 +0100 |
commit | 3c351460e1dbed9e789e363f1d5635160bce8d84 (patch) | |
tree | ee439d6076eb78180e4d0e0f63de931e3e523118 /mediagoblin/submit/forms.py | |
parent | c8035da197f9ada5279e9198ac4ee4dcd8ca4da1 (diff) | |
download | mediagoblin-3c351460e1dbed9e789e363f1d5635160bce8d84.tar.lz mediagoblin-3c351460e1dbed9e789e363f1d5635160bce8d84.tar.xz mediagoblin-3c351460e1dbed9e789e363f1d5635160bce8d84.zip |
Fix unit tests with new license support
Make the license field in the forms optional and let them
properly be defaulted to "".
Diffstat (limited to 'mediagoblin/submit/forms.py')
-rw-r--r-- | mediagoblin/submit/forms.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mediagoblin/submit/forms.py b/mediagoblin/submit/forms.py index 4ff52609..1ff59c18 100644 --- a/mediagoblin/submit/forms.py +++ b/mediagoblin/submit/forms.py @@ -39,4 +39,5 @@ class SubmitStartForm(wtforms.Form): "Separate tags by commas.")) license = wtforms.SelectField( _('License'), + [wtforms.validators.Optional(),], choices=licenses_as_choices()) |