#31620: WeekArchiveView '%V' support
-----------------------------------------+------------------------
Reporter: jjagielka | Owner: nobody
Type: New feature | Status: new
Component: Generic views | Version: 3.0
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-----------------------------------------+------------------------
#26217 (Docs for WeekArchiveView are misleading about %W) - closed 4 years
ago mentioned support for %V week format.
Since python 3.6, %G, %u and %V ISO 8601 formatters were added to
`strptime`.
`WeekArchiveView` should add %V to the list of accepted week formatters.
This would require as well the special case to change the year format to
%G, or simply `ValueError` in `_date_from_string` should mention the
message passed from `datetime.datetime.strptime`:
''ISO week directive '%V' is incompatible with the year directive '%Y'.
Use the ISO year '%G'.''
--
Ticket URL: <https://code.djangoproject.com/ticket/31620>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/052.6f554fbbeab79787672a224d45110c47%40djangoproject.com.