Add new document app events: document type created and document type edited. Add link to document type events.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-08-15 03:18:46 -04:00
parent b3ef018d6c
commit cd76b1fd4a
5 changed files with 46 additions and 3 deletions
+4 -1
View File
@@ -42,6 +42,7 @@ from .dashboard_widgets import (
from .events import (
event_document_create, event_document_download,
event_document_properties_edit, event_document_type_change,
event_document_type_created, event_document_type_edited,
event_document_new_version, event_document_version_revert,
event_document_view
)
@@ -149,6 +150,7 @@ class DocumentsApp(MayanAppConfig):
ModelEventType.register(
model=DocumentType, event_types=(
event_document_create,
event_document_type_edited,
)
)
ModelEventType.register(
@@ -408,7 +410,8 @@ class DocumentsApp(MayanAppConfig):
links=(
link_document_type_edit, link_document_type_filename_list,
link_acl_list, link_object_event_types_user_subcriptions_list,
link_document_type_delete
link_document_type_delete,
link_events_for_object,
), sources=(DocumentType,)
)
menu_object.bind_links(