fix index order
This commit is contained in:
parent
99882e78ae
commit
41c1b1cdec
2 changed files with 6 additions and 3 deletions
|
|
@ -76,7 +76,7 @@ def index(request):
|
|||
context['items'] = week
|
||||
extra = models.Week.objects.filter(monday=monday, is_break=False).first()
|
||||
if extra:
|
||||
context['week_background'] = extra.background(now)
|
||||
context['week_background'] = extra.background(now, '-published')
|
||||
if now:
|
||||
context['now'] = now
|
||||
context['previous_week'] = (now - timedelta(days=7)).strftime(TS_FORMAT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue