Add keyword arguments. Sort arguments and models. Move literals to their own module. Prepend handler_ to signal handlers. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
15 lines
485 B
Python
15 lines
485 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from mayan.apps.events import EventTypeNamespace
|
|
|
|
namespace = EventTypeNamespace(label=_('Cabinets'), name='cabinets')
|
|
|
|
event_cabinets_add_document = namespace.add_event_type(
|
|
label=_('Document added to cabinet'), name='add_document'
|
|
)
|
|
event_cabinets_remove_document = namespace.add_event_type(
|
|
label=_('Document removed from cabinet'), name='remove_document'
|
|
)
|