svthalia/concrexit

View on GitHub
website/documents/apps.py

Summary

Maintainability
A
1 hr
Test Coverage
from django.apps import AppConfig
from django.urls import reverse
from django.utils.translation import gettext_lazy as _


class DocumentsConfig(AppConfig):
    name = "documents"
    verbose_name = _("Documents")

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