forked from rc/aircox
cfr #121 Co-authored-by: Christophe Siraut <d@tobald.eu.org> Co-authored-by: bkfox <thomas bkfox net> Co-authored-by: Thomas Kairos <thomas@bkfox.net> Reviewed-on: rc/aircox#131 Co-authored-by: Chris Tactic <ctactic@noreply.git.radiocampus.be> Co-committed-by: Chris Tactic <ctactic@noreply.git.radiocampus.be>
16 lines
342 B
Python
16 lines
342 B
Python
from ..models import Article, Program, StaticPage
|
|
from . import page
|
|
|
|
__all__ = ["ArticleDetailView", "ArticleListView"]
|
|
|
|
|
|
class ArticleDetailView(page.PageDetailView):
|
|
model = Article
|
|
|
|
|
|
@page.attach
|
|
class ArticleListView(page.PageListView):
|
|
model = Article
|
|
parent_model = Program
|
|
attach_to_value = StaticPage.Target.ARTICLES
|