navigation & breadcrumbs
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user