开发者

Monday as first day of week for WeekArchiveView

How do I convin开发者_C百科ce WeekArchiveView that Monday is the first day of week?


Juding by this diff, it is achieved by adding week_format parameter to urls.py:

url(r'^items/(?P<year>\d{4})/week/(?P<week>\d{1,2})/$', ItemArchiveView.as_view(
    week_format='%W'
)),
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜