shuup.reports.admin_module package

Submodules

shuup.reports.admin_module.views module

class shuup.reports.admin_module.views.ReportView(**kwargs)[source]

Bases: FormView

Constructor. Called in the URLconf; can contain helpful extra keyword arguments, and other things.

template_name = 'shuup/reports/report.jinja'
form_class = None
add_form_errors_as_messages = True
get_form(form_class=None)[source]

Return an instance of the form to be used in this view.

form_valid(form)[source]

If the form is valid, redirect to the supplied URL.

get_context_data(**kwargs)[source]

Insert the form into the context dict.

Module contents

class shuup.reports.admin_module.ReportsAdminModule[source]

Bases: AdminModule

name = 'Reports'
breadcrumbs_menu_entry = <shuup.admin.base.MenuEntry object>
get_urls()[source]
Return type:

list[django.urls.RegexURLPattern]

get_menu_entries(request)[source]
Return type:

list[shuup.admin.base.MenuEntry]

get_extra_permissions()[source]

Define custom extra permissions for admin module for option to limit certain parts of the admin module based on per user permission string. Should return unique list permission strings across the installation to prevent unwanted side effects.

Return type:

list[str]