Coverage for website/activemembers/apps.py: 100.00%
10 statements
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
« prev ^ index » next coverage.py v7.6.7, created at 2025-08-14 10:31 +0000
1from django.apps import AppConfig
2from django.urls import reverse
3from django.utils.translation import gettext_lazy as _
6class ActiveMembersConfig(AppConfig):
7 """AppConfig for the activemembers package."""
9 name = "activemembers"
10 verbose_name = _("Active members")
12 def ready(self):
13 """Import the signals when the app is ready."""
14 from . import signals # noqa: F401
16 def menu_items(self):
17 return {
18 "categories": [{"name": "association", "title": "Association", "key": 1}],
19 "items": [
20 {
21 "category": "association",
22 "title": "Board",
23 "url": reverse("activemembers:boards"),
24 "key": 0,
25 },
26 {
27 "category": "association",
28 "title": "Committees",
29 "url": reverse("activemembers:committees"),
30 "key": 1,
31 },
32 {
33 "category": "association",
34 "title": "Societies",
35 "url": reverse("activemembers:societies"),
36 "key": 2,
37 },
38 ],
39 }