work on main design & layout
This commit is contained in:
@ -50,6 +50,6 @@ class TimeTableView(GetDateMixin, BaseDiffusionListView):
|
||||
|
||||
if object_list is None:
|
||||
logs = self.get_logs(self.date)
|
||||
object_list = Log.merge_diffusions(logs, self.object_list)
|
||||
object_list = Log.merge_diffusions(logs, self.object_list, group_logs=True)
|
||||
object_list = list(reversed(object_list))
|
||||
return super().get_context_data(date=self.date, dates=dates, object_list=object_list, **kwargs)
|
||||
|
@ -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)
|
||||
return Log.merge_diffusions(logs, object_list, diff_count=self.related_count, group_logs=True)
|
||||
|
||||
def get_next_diffs(self):
|
||||
now = tz.now()
|
||||
|
Reference in New Issue
Block a user