work on templates

This commit is contained in:
bkfox
2023-11-22 17:33:51 +01:00
parent 36ae12af3d
commit b4c12def13
25 changed files with 812 additions and 1503 deletions

View File

@ -5,12 +5,13 @@ from django.views.generic import ListView
from ..models import Diffusion, Log, Page, StaticPage
from .base import BaseView
from .mixins import AttachedToMixin
class HomeView(BaseView, ListView):
class HomeView(AttachedToMixin, BaseView, ListView):
template_name = "aircox/home.html"
model = Diffusion
attach_to_value = StaticPage.ATTACH_TO_HOME
model = Diffusion
queryset = Diffusion.objects.on_air().select_related("episode")
logs_count = 5
publications_count = 5