Opened 5 years ago

Closed 5 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 Changed 5 years ago by Aymeric Augustin

Owner: changed from nobody to Aymeric Augustin

comment:2 Changed 5 years ago by Jannis Leidel

Triage Stage: UnreviewedAccepted

comment:3 Changed 5 years ago by Jannis Leidel

Type: Cleanup/optimizationBug

comment:4 Changed 5 years ago by Aymeric Augustin <aymeric.augustin@…>

Resolution: fixed
Status: newclosed

In [3b2993ed04f200a89c2d49590131c97c8974e9ac]:

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

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