Add role create and edit events

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2019-04-24 23:19:04 -04:00
parent 3f9421fc75
commit 5574aaec9e
9 changed files with 123 additions and 2 deletions

View File

@@ -0,0 +1,16 @@
from __future__ import absolute_import, unicode_literals
from django.utils.translation import ugettext_lazy as _
from mayan.apps.events import EventTypeNamespace
namespace = EventTypeNamespace(
label=_('Permissions'), name='permissions'
)
event_role_created = namespace.add_event_type(
label=_('Role created'), name='role_created'
)
event_role_edited = namespace.add_event_type(
label=_('Role edited'), name='role_edited'
)