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/views.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/views.py')
-rw-r--r-- | mediagoblin/submit/views.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mediagoblin/submit/views.py b/mediagoblin/submit/views.py index 8911bf82..832203a4 100644 --- a/mediagoblin/submit/views.py +++ b/mediagoblin/submit/views.py @@ -69,9 +69,7 @@ def submit_start(request): entry.description_html = cleaned_markdown_conversion( entry.description) - entry.license = ( - unicode(request.POST.get('license')) - or '') + entry.license = unicode(request.POST.get('license', '')) entry.uploader = request.user._id |