PEP8 cleanups, remove unused imports, add missing imports
This commit is contained in:
@@ -5,7 +5,7 @@ import tempfile
|
||||
from django.db import models
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from common.utils import validate_path, encapsulate
|
||||
from common.utils import validate_path
|
||||
|
||||
from .models import DocumentVersion, get_filename_from_uuid
|
||||
from .settings import STORAGE_BACKEND, CACHE_PATH
|
||||
@@ -15,4 +15,4 @@ from .settings import STORAGE_BACKEND, CACHE_PATH
|
||||
if (validate_path(CACHE_PATH) == False) or (not CACHE_PATH):
|
||||
setattr(document_settings, 'CACHE_PATH', tempfile.mkdtemp())
|
||||
|
||||
DocumentVersion._meta.get_field('file').storage=STORAGE_BACKEND()
|
||||
DocumentVersion._meta.get_field('file').storage = STORAGE_BACKEND()
|
||||
|
||||
Reference in New Issue
Block a user