Source code for shuup.testing.modules.mocker.sections

from django.utils.translation import gettext_lazy as _

from shuup.admin.base import Section


[docs] class MockContactSection(Section): identifier = "contact_mock_section" name = _("mock section title") icon = "fa-globe" template = "shuup_testing/_contact_mock_section.jinja" order = 9
[docs] @classmethod def visible_for_object(cls, contact, request=None): return True
[docs] @classmethod def get_context_data(cls, contact, request=None): context = {} context["mock_context"] = "mock section context data" return context