Move history app links to a seprate file
This commit is contained in:
@@ -6,13 +6,10 @@ from project_tools.api import register_tool
|
||||
from navigation.api import register_model_list_columns, register_links
|
||||
from common.utils import encapsulate
|
||||
|
||||
from .permissions import PERMISSION_HISTORY_VIEW
|
||||
from .models import History
|
||||
from .widgets import history_entry_summary, history_entry_type_link
|
||||
|
||||
history_list = {'text': _(u'history'), 'view': 'history_list', 'famfam': 'book', 'icon': 'book.png', 'children_view_regex': [r'history_[l,v]']}
|
||||
history_details = {'text': _(u'details'), 'view': 'history_view', 'famfam': 'book_open', 'args': 'object.pk'}
|
||||
|
||||
from .links import history_list, history_details
|
||||
|
||||
register_tool(history_list)
|
||||
|
||||
register_model_list_columns(History, [
|
||||
|
||||
8
apps/history/links.py
Normal file
8
apps/history/links.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from .permissions import PERMISSION_HISTORY_VIEW
|
||||
|
||||
history_list = {'text': _(u'history'), 'view': 'history_list', 'famfam': 'book', 'icon': 'book.png', 'children_view_regex': [r'history_[l,v]']}
|
||||
history_details = {'text': _(u'details'), 'view': 'history_view', 'famfam': 'book_open', 'args': 'object.pk', 'permissions': [PERMISSION_HISTORY_VIEW]}
|
||||
Reference in New Issue
Block a user