# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from shuup.admin.base import AdminModule, MenuEntry
from shuup.admin.menu import REPORTS_MENU_CATEGORY
from shuup.admin.utils.urls import admin_url
from shuup.reports.report import get_report_classes
[docs]class ReportsAdminModule(AdminModule):
name = _("Reports")
breadcrumbs_menu_entry = MenuEntry(text=name, url="shuup_admin:reports.list")
[docs] def get_urls(self):
return [admin_url("^reports/$", "shuup.reports.admin_module.views.ReportView", name="reports.list")]