26 lines
792 B
Python
26 lines
792 B
Python
from __future__ import unicode_literals
|
|
|
|
from django import apps
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from navigation.api import register_links
|
|
|
|
from project_tools.api import register_tool
|
|
|
|
from .classes import Statistic, StatisticNamespace
|
|
from .links import (
|
|
link_execute, link_namespace_details, link_namespace_list,
|
|
link_statistics
|
|
)
|
|
|
|
|
|
class StatisticsApp(apps.AppConfig):
|
|
name = 'statistics'
|
|
verbose_name = _('Statistics')
|
|
|
|
def ready(self):
|
|
register_links(StatisticNamespace, [link_namespace_details])
|
|
register_links([StatisticNamespace, 'statistics:namespace_list', 'statistics:execute'], [link_namespace_list], menu_name='secondary_menu')
|
|
register_links(Statistic, [link_execute])
|
|
register_tool(link_statistics)
|