Ticket #1282: archive_today.diff
File archive_today.diff, 789 bytes (added by , 18 years ago) |
---|
-
django/views/generic/date_based.py
272 272 c[key] = value 273 273 return HttpResponse(t.render(c), mimetype=mimetype) 274 274 275 def archive_today(request, **kwargs):275 def archive_today(request, month_format='%b', **kwargs): 276 276 """ 277 277 Generic daily archive view for today. Same as archive_day view. 278 278 """ 279 279 today = datetime.date.today() 280 280 kwargs.update({ 281 281 'year': str(today.year), 282 'month': today.strftime( '%b').lower(),282 'month': today.strftime(month_format).lower(), 283 283 'day': str(today.day), 284 284 }) 285 285 return archive_day(request, **kwargs)