summaryrefslogtreecommitdiff
path: root/ishtar_common/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/utils.py')
-rw-r--r--ishtar_common/utils.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/ishtar_common/utils.py b/ishtar_common/utils.py
index cbf4242b2..3a349c04b 100644
--- a/ishtar_common/utils.py
+++ b/ishtar_common/utils.py
@@ -33,7 +33,6 @@ import re
import requests
from secretary import Renderer as MainSecretaryRenderer, UndefinedSilently
import shutil
-import six
import subprocess
import sys
import tempfile
@@ -227,7 +226,7 @@ def check_model_access_control(request, model, available_perms=None):
"""
own = True # more restrictive by default
allowed = False
- if not request.user.is_authenticated():
+ if not request.user.is_authenticated:
return allowed, own
if not available_perms:
@@ -1797,7 +1796,7 @@ def get_all_media(exclude=None, debug=False):
exclude = []
media = set()
- full_dirs = list(os.walk(six.text_type(settings.MEDIA_ROOT)))
+ full_dirs = list(os.walk(settings.MEDIA_ROOT))
ln_full = len(full_dirs)
for idx_main, full_dir in enumerate(full_dirs):
root, dirs, files = full_dir