标签: python django django-1.3 django-class-based-views weekday
我如何说服WeekArchiveView星期一是一周的第一天?
WeekArchiveView
答案 0 :(得分:4)
this diff之后,通过将week_format参数添加到urls.py来实现:
week_format
urls.py
url(r'^items/(?P<year>\d{4})/week/(?P<week>\d{1,2})/$', ItemArchiveView.as_view( week_format='%W' )),