#3189: [patch] generic date_based view, allowing week to start on monday
---------------------------------------------+------------------------------
Reporter: [EMAIL PROTECTED] | Owner: nobody
Status: new | Milestone:
Component: Generic views | Version: SVN
Resolution: | Keywords:
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by jgomo3):
Also has to be changed the number representing the day of the week (%w).
So, the stuff is like, for sunday beeing the first day:
{{{
date = datetime.date(*time.strptime(year+'-0-'+week, '%Y-%w-%U')[:3])
}}}
but for monday beeing the first day:
{{{
date = datetime.date(*time.strptime(year+'-1-'+week, '%Y-%w-%W')[:3])
}}}
I think that's all.
--
Ticket URL: <http://code.djangoproject.com/ticket/3189#comment:7>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---