Create a sample document index after the initial setup. GitLab issue #275.
This commit is contained in:
@@ -15,6 +15,7 @@ from common import (
|
||||
menu_setup, menu_tools
|
||||
)
|
||||
from common.classes import Package
|
||||
from common.signals import post_initial_setup
|
||||
from common.widgets import two_state_template
|
||||
from documents.signals import post_document_created
|
||||
from mayan.celery import app
|
||||
@@ -22,8 +23,9 @@ from navigation import SourceColumn
|
||||
from rest_api.classes import APIEndPoint
|
||||
|
||||
from .handlers import (
|
||||
document_created_index_update, document_index_delete,
|
||||
document_metadata_index_update, document_metadata_index_post_delete
|
||||
document_created_index_update, create_default_document_index,
|
||||
document_index_delete, document_metadata_index_update,
|
||||
document_metadata_index_post_delete
|
||||
)
|
||||
from .links import (
|
||||
link_document_index_list, link_index_main_menu, link_index_setup,
|
||||
@@ -232,6 +234,10 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
document_created_index_update,
|
||||
dispatch_uid='document_created_index_update', sender=Document
|
||||
)
|
||||
post_initial_setup.connect(
|
||||
create_default_document_index,
|
||||
dispatch_uid='create_default_document_index'
|
||||
)
|
||||
post_save.connect(
|
||||
document_metadata_index_update,
|
||||
dispatch_uid='document_metadata_index_update',
|
||||
|
||||
Reference in New Issue
Block a user