aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit/views.py
diff options
context:
space:
mode:
authorChristopher Allan Webber <cwebber@dustycloud.org>2012-01-21 16:40:39 -0600
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-01-21 16:40:39 -0600
commit2788e6a16484330ce1091ae57a87a4da362936c6 (patch)
tree49bdc0fe23a791ff9c9a3571dcec3009e337e96e /mediagoblin/edit/views.py
parent3c351460e1dbed9e789e363f1d5635160bce8d84 (diff)
downloadmediagoblin-2788e6a16484330ce1091ae57a87a4da362936c6.tar.lz
mediagoblin-2788e6a16484330ce1091ae57a87a4da362936c6.tar.xz
mediagoblin-2788e6a16484330ce1091ae57a87a4da362936c6.zip
License "all rights reserved" default should be None/NULL, not empty string
Diffstat (limited to 'mediagoblin/edit/views.py')
-rw-r--r--mediagoblin/edit/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py
index 62684dcf..471968f7 100644
--- a/mediagoblin/edit/views.py
+++ b/mediagoblin/edit/views.py
@@ -75,7 +75,7 @@ def edit_media(request, media):
media.description_html = cleaned_markdown_conversion(
media.description)
- media.license = unicode(request.POST.get('license', ''))
+ media.license = unicode(request.POST.get('license')) or None
media.slug = unicode(request.POST['slug'])