diff --git a/HISTORY.rst b/HISTORY.rst index bf556b56a2..712569f245 100644 --- a/HISTORY.rst +++ b/HISTORY.rst @@ -80,6 +80,8 @@ * Add dependencies app * Convert the document tags widget to use HTML templates. * Move Tag app HTML widgets to their own module. +* Move the document index app widgets to the html_widget.py + module. 3.1.11 (2019-04-XX) =================== diff --git a/docs/releases/3.2.rst b/docs/releases/3.2.rst index c023067ab2..dabc4097ed 100644 --- a/docs/releases/3.2.rst +++ b/docs/releases/3.2.rst @@ -112,6 +112,8 @@ Other changes * Add dependencies app * Convert the document tags widget to use HTML templates. * Move Tag app HTML widgets to their own module. +* Move the document index app widgets to the html_widget.py + module. Removals -------- diff --git a/mayan/apps/document_indexing/apps.py b/mayan/apps/document_indexing/apps.py index 59bd712801..7160e41555 100644 --- a/mayan/apps/document_indexing/apps.py +++ b/mayan/apps/document_indexing/apps.py @@ -23,6 +23,9 @@ from .handlers import ( handler_index_document, handler_remove_document, handler_post_save_index_document ) +from .html_widgets import ( + get_instance_link, index_instance_item_link, node_level +) from .links import ( link_document_index_list, link_index_main_menu, link_index_setup, link_index_setup_create, link_index_setup_document_types, @@ -39,7 +42,6 @@ from .permissions import ( permission_document_indexing_rebuild, permission_document_indexing_view ) from .queues import * # NOQA -from .widgets import get_instance_link, index_instance_item_link, node_level class DocumentIndexingApp(MayanAppConfig): diff --git a/mayan/apps/document_indexing/widgets.py b/mayan/apps/document_indexing/html_widgets.py similarity index 100% rename from mayan/apps/document_indexing/widgets.py rename to mayan/apps/document_indexing/html_widgets.py diff --git a/mayan/apps/document_indexing/views.py b/mayan/apps/document_indexing/views.py index 920735e5c4..7df03a17e6 100644 --- a/mayan/apps/document_indexing/views.py +++ b/mayan/apps/document_indexing/views.py @@ -17,6 +17,7 @@ from mayan.apps.documents.permissions import permission_document_view from mayan.apps.documents.views import DocumentListView from .forms import IndexTemplateFilteredForm, IndexTemplateNodeForm +from .html_widgets import node_tree from .icons import icon_index from .links import link_index_setup_create from .models import ( @@ -30,7 +31,6 @@ from .permissions import ( permission_document_indexing_view ) from .tasks import task_rebuild_index -from .widgets import node_tree # Setup views