License "all rights reserved" default should be None/NULL, not empty string

This commit is contained in:
Christopher Allan Webber
2012-01-21 16:40:39 -06:00
parent 3c351460e1
commit 2788e6a164
5 changed files with 5 additions and 5 deletions

View 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'])