navigation & breadcrumbs

This commit is contained in:
bkfox
2023-12-12 20:07:58 +01:00
parent eaa1e2412a
commit 46a9008cda
29 changed files with 454 additions and 347 deletions

View File

@ -1,7 +1,7 @@
from . import admin, errors
from .article import ArticleDetailView, ArticleListView
from .base import BaseAPIView, BaseView
from .diffusion import DiffusionListView
from .diffusion import DiffusionListView, TimeTableView
from .episode import EpisodeDetailView, EpisodeListView, PodcastListView
from .home import HomeView
from .log import LogListAPIView, LogListView
@ -26,6 +26,7 @@ __all__ = (
"BaseAPIView",
"BaseView",
"DiffusionListView",
"TimeTableView",
"EpisodeDetailView",
"EpisodeListView",
"PodcastListView",
@ -40,4 +41,15 @@ __all__ = (
"ProgramListView",
"ProgramPageDetailView",
"ProgramPageListView",
"attached",
)
attached = {}
for key in __all__:
view = globals().get(key)
if key == "attached":
continue
if attach := getattr(view, "attach_to_value", None):
attached[attach] = view