From: Radek Czajka Date: Mon, 26 May 2014 14:51:13 +0000 (+0200) Subject: Fix unicode error on gallery view. X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/ec6680ed1179840f341ae507ba78320cd23a838e?hp=717643bdf87c1447a8d312d26307feee6a733b97 Fix unicode error on gallery view. --- 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.