diff --git a/mayan/apps/documents/managers.py b/mayan/apps/documents/managers.py index db8c8bff01..481b4d5d10 100644 --- a/mayan/apps/documents/managers.py +++ b/mayan/apps/documents/managers.py @@ -2,9 +2,9 @@ from __future__ import unicode_literals import logging -from django.db import models, transaction +from django.db import models -from .settings import setting_recent_count, setting_language +from .settings import setting_recent_count logger = logging.getLogger(__name__) diff --git a/mayan/apps/documents/migrations/0013_document_is_stub.py b/mayan/apps/documents/migrations/0013_document_is_stub.py index 6f110d024e..dd63cb203a 100644 --- a/mayan/apps/documents/migrations/0013_document_is_stub.py +++ b/mayan/apps/documents/migrations/0013_document_is_stub.py @@ -8,7 +8,7 @@ def make_existing_documents_not_stubs(apps, schema_editor): Document = apps.get_model('documents', 'Document') for document in Document.objects.all(): - document.is_stub=False + document.is_stub = False document.save() diff --git a/mayan/apps/documents/models.py b/mayan/apps/documents/models.py index 199a47d8fa..95e43e3bd3 100644 --- a/mayan/apps/documents/models.py +++ b/mayan/apps/documents/models.py @@ -13,8 +13,6 @@ from django.utils.encoding import python_2_unicode_compatible from django.utils.timezone import now from django.utils.translation import ugettext_lazy as _ -from celery.execute import send_task - from common.literals import TIME_DELTA_UNIT_CHOICES from common.models import SharedUploadedFile from common.settings import setting_temporary_directory diff --git a/mayan/apps/documents/views.py b/mayan/apps/documents/views.py index 727d2186cc..d1d9515614 100644 --- a/mayan/apps/documents/views.py +++ b/mayan/apps/documents/views.py @@ -51,8 +51,8 @@ from .permissions import ( permission_document_view, permission_empty_trash ) from .settings import ( - setting_preview_size, setting_recent_count, setting_rotation_step, - setting_zoom_percent_step, setting_zoom_max_level, setting_zoom_min_level + setting_preview_size, setting_rotation_step, setting_zoom_percent_step, + setting_zoom_max_level, setting_zoom_min_level ) from .tasks import ( task_clear_image_cache, task_get_document_page_image,