use week title in email
This commit is contained in:
parent
778b6836de
commit
5b2670859f
3 changed files with 16 additions and 3 deletions
|
|
@ -13,7 +13,7 @@ from django.core.validators import validate_email
|
|||
import django.contrib.auth
|
||||
|
||||
from ..item import models
|
||||
from ..item.views import get_weeks, format_week, get_monday, get_byline
|
||||
from ..item.views import get_weeks, format_week, get_monday, get_byline, format_subject
|
||||
from ..item.utils import render_to_json
|
||||
from ..utils import default_context
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ def week(year, month, day):
|
|||
context['weeks'] = get_weeks(archive)
|
||||
monday = context['this_week'] = date.strftime('%Y-%m-%d')
|
||||
context['this_year'] = date.strftime('%Y')
|
||||
context['week_title'] = 'Phantas.ma weekly update %s' % format_week(monday)
|
||||
context['week_title'] = format_subject(monday)
|
||||
context['week_byline'] = get_byline(monday)
|
||||
context['week_link'] = settings.URL + '/_' + monday
|
||||
context['items'] = archive_week
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue