rendering

This commit is contained in:
bkfox
2024-01-27 18:56:05 +01:00
parent 8cf57c07b2
commit 5bb52a9d67
7 changed files with 35 additions and 8 deletions

View File

@ -32,7 +32,7 @@ class HomeView(AttachedToMixin, BaseView, ListView):
logs = logs.after(min_date)
else:
logs = logs.date(today)
return Log.merge_diffusions(logs, object_list, diff_count=self.related_count, group_logs=True)
return Log.merge_diffusions(logs, object_list, diff_count=self.related_count, log_slice=20, group_logs=True)
def get_next_diffs(self):
now = tz.now()

View File

@ -71,6 +71,7 @@ class BasePageListView(AttachedToMixin, BasePageMixin, ParentMixin, BaseView, Li
if not context.get("cover") and parent and parent.cover:
context["cover"] = parent.cover.url
return context