Code cleanups.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user