X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5dd35dc51c94ec63a25ad17dca4259e7e80e2bc0..537012c60af1ea1c0e39949c58df4647ddadc72b:/apps/explorer/models.py diff --git a/apps/explorer/models.py b/apps/explorer/models.py index e47c26fe..f292283f 100644 --- a/apps/explorer/models.py +++ b/apps/explorer/models.py @@ -48,9 +48,7 @@ def get_image_folders(): def get_images_from_folder(folder): - return sorted(settings.MEDIA_URL + settings.IMAGE_DIR + '/' + folder + '/' + fn for fn + return sorted(settings.MEDIA_URL + settings.IMAGE_DIR + u'/' + folder + u'/' + fn.decode('utf-8') for fn in os.listdir(os.path.join(settings.MEDIA_ROOT, settings.IMAGE_DIR, folder)) - if not fn.startswith('.')) + if not fn.decode('utf-8').startswith('.')) -def user_branch(user): - return 'personal_'+user.username