TemplateView get method passes kwargs into context
|Reported by:||ptone||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
TemplateView is unique among the CB Views in passing the kwargs passed to the get method (from the URLConf) directly into context
I believe this to be a bug - get_context_data does take kwargs, but they are intended as ways to override context values - context should not, by default, have all the kwargs being passed to the view from the URLConf.
The question is - can this fix be made as a backwards incompatible change - or does it need to go through deprecation?
Change History (6)
comment:1 Changed 5 years ago by ptone
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset