def prevnext(target, calendar, period, fmt=None):
if fmt is None:
fmt = settings.DATE_FORMAT
context = {
'calendar': calendar,
'period': period,
'period_name': format(period.start, fmt),
'target': target,
}
return context
评论列表
文章目录