A couple more adjustments for unicode'ification of some arguments.

This commit sponsored by Bruno Girin.  Thank you!
This commit is contained in:
Christopher Allan Webber 2013-11-14 10:01:41 -06:00
parent 862e05a5b5
commit cb7716f3b5

View File

@ -120,9 +120,9 @@ def submit_media(mg_app, user, submitted_file, filename,
# create entry and save in database
entry = new_upload_entry(user)
entry.media_type = media_type
entry.title = (title or splitext(filename)[0])
entry.title = (title or unicode(splitext(filename)[0]))
entry.description = description or ""
entry.description = description or u""
entry.license = license or None