use monday of current set
This commit is contained in:
parent
09da46bba3
commit
bc1a5d96d9
1 changed files with 1 additions and 0 deletions
|
|
@ -75,6 +75,7 @@ def index(request):
|
|||
context["break"] = week
|
||||
else:
|
||||
context['items'] = week
|
||||
monday = get_monday(week[0].published)
|
||||
extra = models.Week.objects.filter(monday=monday, is_break=False).first()
|
||||
if extra:
|
||||
context['week_background'] = extra.background(now, '-published')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue