Changes between Initial Version and Version 2 of Ticket #28082
- Timestamp:
- Apr 20, 2017, 6:25:45 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28082
- Property Has patch set
- Property Needs tests set
- Property Triage Stage Unreviewed → Accepted
- Property Summary Pull request #8364: BaseDateListView should pass all context to subclasses → BaseDateListView should pass all context to subclasses
-
Ticket #28082 – Description
initial v2 3 3 BaseDateListView.get() currently modifies the context after calling get_context_data(), which prevents users from access those data in their base classes. I ran into this suprising quirk when I wanted to access the current month in my MonthArchiveView subclass's get_context_data(). 4 4 5 I have created a GitHub pull request https://github.com/django/django/pull/83645 I have created a [https://github.com/django/django/pull/8364 pull request] for a very minimal patch. 6 6 7 7 (To really tidy things up, we could have all instances get_dated_items() return a single dictionary that we pass to get_context_data as kwargs, but I am a realist on occasion...)