开发者

Monday as first day of week for WeekArchiveView

开发者 https://www.devze.com 2023-04-10 17:40 出处:网络
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:

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

精彩评论

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

关注公众号