diff --git a/mayan/apps/appearance/templatetags/appearance_tags.py b/mayan/apps/appearance/templatetags/appearance_tags.py index 62f3528bbb..d51fd040c8 100644 --- a/mayan/apps/appearance/templatetags/appearance_tags.py +++ b/mayan/apps/appearance/templatetags/appearance_tags.py @@ -1,6 +1,7 @@ from __future__ import unicode_literals from django.template import Library +from django.utils.module_loading import import_string from django.utils.translation import ugettext_lazy as _ register = Library() @@ -23,8 +24,4 @@ def get_form_media_js(form): @register.simple_tag def get_icon(icon_path): - from django.utils.module_loading import import_string - icon_class = import_string(icon_path) - return icon_class.render() - #return [form.media.absolute_path(path) for path in form.media._js] - + return import_string(icon_path).render() diff --git a/mayan/apps/common/apps.py b/mayan/apps/common/apps.py index 60d0f5543f..71e86aaf6a 100644 --- a/mayan/apps/common/apps.py +++ b/mayan/apps/common/apps.py @@ -26,8 +26,7 @@ from .links import ( link_about, link_check_version, link_current_user_details, link_current_user_edit, link_current_user_locale_profile_edit, link_license, link_object_error_list_clear, link_packages_licenses, - link_setup, link_support, link_tools, separator_user_label, - text_user_label + link_setup, link_tools, separator_user_label, text_user_label ) from .literals import DELETE_STALE_UPLOADS_INTERVAL, MESSAGE_SQLITE_WARNING diff --git a/mayan/apps/documents/models.py b/mayan/apps/documents/models.py index 86d6e8c3d3..4fab88a20a 100644 --- a/mayan/apps/documents/models.py +++ b/mayan/apps/documents/models.py @@ -1018,7 +1018,6 @@ class DocumentPageCachedImage(models.Model): return super(DocumentPageCachedImage, self).save(*args, **kwargs) - class DocumentPageResult(DocumentPage): class Meta: ordering = ('document_version__document', 'page_number')