How do I convince WeekArchiveView
that Monday is the first day of week?
Asked
Active
Viewed 246 times
2

Dan Abramov
- 264,556
- 84
- 409
- 511
1 Answers
4
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'
)),

Dan Abramov
- 264,556
- 84
- 409
- 511
-
are you answering your own question :? – pyInTheSky Oct 05 '11 at 18:03
-
@pyInTheSky [I am](http://meta.stackexchange.com/questions/12513/should-i-not-answer-my-own-questions/12519#12519) – Dan Abramov Oct 05 '11 at 19:49