Fixed a small error relating to the default value of media_metadata
authortilly-Q <nattilypigeonfowl@gmail.com>
Wed, 14 May 2014 16:34:13 +0000 (12:34 -0400)
committertilly-Q <nattilypigeonfowl@gmail.com>
Wed, 14 May 2014 16:34:13 +0000 (12:34 -0400)
mediagoblin/submit/lib.py

index df3f7b62dfca3f6dd6611af4b751743538924632..93ae7a1f342b8adc23e8ff47e5e6455b84e48299 100644 (file)
@@ -142,7 +142,7 @@ def submit_media(mg_app, user, submitted_file, filename,
 
     entry.license = license or None
 
-    entry.media_metadata = metadata or u""
+    entry.media_metadata = metadata or {}
 
     # Process the user's folksonomy "tags"
     entry.tags = convert_to_tag_list_of_dicts(tags_string)