Changes between Initial Version and Version 1 of Ticket #28331
- Timestamp:
- Jun 21, 2017, 7:02:32 PM (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #28331 – Description
initial v1 15 15 16 16 }}} 17 You can find them across the web, across StackOverflow, etc. Everyone has to make this one stupidclass just so that they can pass an extra context to template-only views.17 You can find them across the web, across StackOverflow, etc. Everyone has to remake this one small class just so that they can pass an extra context to template-only views. 18 18 19 19 This is counter-productive: the whole point of a framework is to *prevent* everyone from having to re-invent the same code. Adding yet another re-implementation of StaticPageView does nothing to improve the code, it only clutters it up with boilerplate. 20 20 21 Please fix this by allowing as_view to take an extra_context arg21 Please fix this by allowing as_view (ideally in all generic views) to take an extra_context arg.