Opened 3 years ago

Closed 3 years ago

#18353 closed Bug (fixed)

Inconsistency in date-based generic views

Reported by: aaugustin Owned by: aaugustin
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 3 years ago by aaugustin

  • Owner changed from nobody to aaugustin

comment:2 Changed 3 years ago by jezdez

  • Triage Stage changed from Unreviewed to Accepted

comment:3 Changed 3 years ago by jezdez

  • Type changed from Cleanup/optimization to Bug

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

  • Resolution set to fixed
  • Status changed from new to closed

In [3b2993ed04f200a89c2d49590131c97c8974e9ac]:

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

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