fix year
This commit is contained in:
parent
3153402ba9
commit
aebf0891de
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ def index(request):
|
|||
week, archive = models.Item.public(now)
|
||||
context['items'] = week
|
||||
if archive.exists():
|
||||
context['archive'] = '/_%s/' % now.year
|
||||
context['archive'] = '/_%s/' % get_now().year
|
||||
if now:
|
||||
context['now'] = now
|
||||
context['previous_week'] = (now - timedelta(days=7)).strftime(TS_FORMAT)
|
||||
|
|
Loading…
Reference in a new issue