Add keyword arguments. Update view resolutions and URL parameters to the '_id' form. Remove code from create and edit subclasses and user the super class error checking. Cache the view object instead of using .get_object() every time. Movernize tests. Update views to comply with MERCs 5 and 6. Split UserTestMixin into mixins for Groups and Users tests. Add super delete and detail tests. Remove redundant superuser filtering from views. Add transactions to views that also commit events. Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
24 lines
648 B
Python
24 lines
648 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=_('User management'), name='user_management'
|
|
)
|
|
|
|
event_group_created = namespace.add_event_type(
|
|
label=_('Group created'), name='group_created'
|
|
)
|
|
event_group_edited = namespace.add_event_type(
|
|
label=_('Group edited'), name='group_edited'
|
|
)
|
|
|
|
event_user_created = namespace.add_event_type(
|
|
label=_('User created'), name='user_created'
|
|
)
|
|
event_user_edited = namespace.add_event_type(
|
|
label=_('User edited'), name='user_edited'
|
|
)
|