fix bug for schedules set to "one week or two"; sections.List: avoid to call self.get_object_list if possible + add prepare_object_list

This commit is contained in:
bkfox
2016-06-20 15:43:23 +02:00
parent a3a9beac6d
commit b195dd74a0
6 changed files with 76 additions and 21 deletions

View File

@ -71,8 +71,8 @@ class Diffusion (RelatedPost):
if self.thread:
if not self.title:
self.title = _('{name} // {first_diff}').format(
self.related.program.name,
self.related.start.strftime('%A %d %B')
name = self.related.program.name,
first_diff = self.related.start.strftime('%A %d %B')
)
if not self.content:
self.content = self.thread.content