Commit d90632f7 by Kálmán Viktor

dashboard: fix import shenanigans

parent 88efcb30
...@@ -21,8 +21,7 @@ from __future__ import unicode_literals, absolute_import ...@@ -21,8 +21,7 @@ from __future__ import unicode_literals, absolute_import
from collections import OrderedDict from collections import OrderedDict
from itertools import chain from itertools import chain
from os import getenv from os import getenv
from os.path import join, normpath, dirname from os.path import join, normpath, dirname, basename
import os
import json import json
import logging import logging
import re import re
...@@ -3193,8 +3192,8 @@ class StoreRemove(LoginRequiredMixin, TemplateView): ...@@ -3193,8 +3192,8 @@ class StoreRemove(LoginRequiredMixin, TemplateView):
if context['is_dir']: if context['is_dir']:
context['directory'] = path context['directory'] = path
else: else:
context['directory'] = os.path.dirname(path) context['directory'] = dirname(path)
context['name'] = os.path.basename(path) context['name'] = basename(path)
return context return context
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment