From ec6680ed1179840f341ae507ba78320cd23a838e Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 26 May 2014 16:51:13 +0200 Subject: [PATCH 1/1] Fix unicode error on gallery view. --- apps/fileupload/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fileupload/views.py b/apps/fileupload/views.py index d08bfd32..cb7873b6 100644 --- a/apps/fileupload/views.py +++ b/apps/fileupload/views.py @@ -41,7 +41,7 @@ class UploadView(FormView): def get_directory(self): """Directory relative to MEDIA_ROOT. Must end with a slash.""" - return self.kwargs['path'] + return self.kwargs['path'].encode('utf-8') def breadcrumbs(self): """List of tuples (name, url) or just (name,) for breadcrumbs. -- 2.20.1