A couple more adjustments for unicode'ification of some arguments.
This commit sponsored by Bruno Girin. Thank you!
This commit is contained in:
parent
862e05a5b5
commit
cb7716f3b5
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user