Opened 12 years ago

Closed 12 years ago

#18353 closed Bug (fixed)

Inconsistency in date-based generic views

Reported by: Aymeric Augustin Owned by: Aymeric Augustin
Component: Generic views Version: 1.4
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

YearArchiveView behaves differently from MonthArchiveView, WeekArchiveView and DayArchiveView, making it harder to write generic code:

  • year is "the given year, as a four-character string"; it should be a datetime.date instead;
  • next_year and previous_year should be available too.

Change History (4)

comment:1 by Aymeric Augustin, 12 years ago

Owner: changed from nobody to Aymeric Augustin

comment:2 by Jannis Leidel, 12 years ago

Triage Stage: UnreviewedAccepted

comment:3 by Jannis Leidel, 12 years ago

Type: Cleanup/optimizationBug

comment:4 by Aymeric Augustin <aymeric.augustin@…>, 12 years ago

Resolution: fixed
Status: newclosed

In [3b2993ed04f200a89c2d49590131c97c8974e9ac]:

Fixed #18353 -- Inconsistency in date-based CBVs.

Note: See TracTickets for help on using tickets.
Back to Top