svthalia/concrexit

View on GitHub
website/merchandise/apps.py

Summary

Maintainability
A
1 hr
Test Coverage
"""Contains the appconfig for the merchandise module."""

from django.apps import AppConfig
from django.urls import reverse
from django.utils.translation import gettext_lazy as _


class MerchandiseConfig(AppConfig):
    """Configuration for the merchandise module."""

    name = "merchandise"
    verbose_name = _("Merchandise")

    def menu_items(self):
        return {
            "categories": [{"name": "association", "title": "Association", "key": 1}],
            "items": [
                {
                    "category": "association",
                    "title": "Merchandise",
                    "url": reverse("merchandise:index"),
                    "key": 4,
                },
            ],
        }