fix week title
This commit is contained in:
parent
073f8add07
commit
6549d0350d
1 changed files with 0 additions and 3 deletions
|
@ -27,8 +27,5 @@ def week(year, month, day):
|
||||||
monday = context['this_week'] = date.strftime('%Y-%m-%d')
|
monday = context['this_week'] = date.strftime('%Y-%m-%d')
|
||||||
context['this_year'] = date.strftime('%Y')
|
context['this_year'] = date.strftime('%Y')
|
||||||
context['week_title'] = 'Phantas.ma weekly update %s' % format_week(monday)
|
context['week_title'] = 'Phantas.ma weekly update %s' % format_week(monday)
|
||||||
extra = models.Week.objects.filter(monday=context['this_week']).first()
|
|
||||||
if extra:
|
|
||||||
context['week_title'] += ': ' + extra.title
|
|
||||||
context['items'] = archive_week
|
context['items'] = archive_week
|
||||||
return render_to_string("weekly_email.html", context)
|
return render_to_string("weekly_email.html", context)
|
||||||
|
|
Loading…
Reference in a new issue