License "all rights reserved" default should be None/NULL, not empty string
[mediagoblin.git] / mediagoblin / edit / views.py
index 62684dcf6cbc9982ca13e3cac37d9e88308bd1fe..471968f748324a06021eba67cbfa938c40754b68 100644 (file)
@@ -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'])