#1229 closed defect (fixed)
[patch] magic-removal: date-based generic views should all support allow_empty
| Reported by: | Owned by: | Jacob | |
|---|---|---|---|
| Component: | Generic views | Version: | magic-removal |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
It would seem logical for all date-based generic views to support an allow_empty argument; however, it appears that only archive_index and archive_day support it. This patch, against magic-removal rev 1958, adds allow_empty to archive_year and archive_month.
I fixed this basically by copying the appropriate logic from archive_index and archive_day to the other two views. Cursory testing with archive_month suggests it works, but I may well have overlooked something...
Attachments (1)
Change History (2)
by , 20 years ago
| Attachment: | date_based.diff added |
|---|
comment:1 by , 20 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Fixes date-based generic views to universally support allow_empty