Generic Views: Inconsistancy of context variable for date_based views.
|Reported by:||evan <at> binarymanipulations <dot> com||Owned by:||nobody|
|Cc:||Triage Stage:||Design decision needed|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The context variable that archive_index uses for the list of objects differs from the other date_based generic views, such as archive_month, archive_day, archive_year and object_list. Archive_index uses 'latest' as its context variable while the others archive_month, archive_year et cetera use 'object_list' for their context variables.
It would be much easier if they all had the same context variable so you could use a for loop in a base-template for all of the different generic views.
Change History (5)
comment:1 Changed 8 years ago by SmileyChris
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Design decision needed