#608 closed enhancement (duplicate)
Allow objects with future dates to display in date based generic views
| Reported by: | scaba | Owned by: | Jacob |
|---|---|---|---|
| Component: | Generic views | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Triage Stage: | Unreviewed | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
The date based generic views are coded to only show objects whose given date field is <= now. However, for views of something like an events calendar, one needs to display objects whose date field is >= now. Proposed is to add an "upcoming_index", which sorts ascending, for showing future objects, and a "future_ok=False" keyword argument to the "archive_(year, month,day)" and "object_detail" views.
Attachments (1)
Change History (3)
by , 20 years ago
| Attachment: | django-update.diff added |
|---|
comment:1 by , 20 years ago
comment:2 by , 19 years ago
| Resolution: | → duplicate |
|---|---|
| Status: | new → closed |
Superseded by #2433, which has a more up-to-date patch.
Note:
See TracTickets
for help on using tickets.
For doc updates:
New view:
Updated views: