Opened 15 years ago

Closed 14 years ago

#10457 closed (fixed)

date_based view archive_today should update kwargs for month/day_format

Reported by: Dirk Datzert <dummy@…> Owned by: nobody
Component: Generic views Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi,

I started using date_based generic views today. I call archive_day and archive_today with the same dictionary in the urls.py with a special month_format and/or day_format setting in the dictionary.

As archive_today uses a special month_format/day_format by default and calls archive_day it should set the correct month_format/day_format if a caller sets somethingelse.

Regards,
Dirk

Attachments (1)

date_based_kwargs.diff (466 bytes ) - added by Dirk Datzert <dummy@…> 15 years ago.
archive_today always correct kwargs patch

Download all attachments as: .zip

Change History (4)

by Dirk Datzert <dummy@…>, 15 years ago

Attachment: date_based_kwargs.diff added

archive_today always correct kwargs patch

comment:1 by Jacob, 15 years ago

Triage Stage: UnreviewedDesign decision needed

comment:2 by Thejaswi Puthraya, 15 years ago

Component: UncategorizedGeneric views
Has patch: set

comment:3 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

Function-based generic views were deprecated by the introduction of class-based views in [14254]. Class-based views should solve this problem.

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