--
Ticket URL: <https://code.djangoproject.com/ticket/17242>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* stage: Unreviewed => Accepted
* needs_tests: => 0
* needs_docs: => 0
Comment:
This is not exactly a duplicate of #16074, but is closely related, and
should probably be fixed in the work on that ticket - I will reference
this one there.
--
Ticket URL: <https://code.djangoproject.com/ticket/17242#comment:1>
* status: new => closed
* resolution: => invalid
Comment:
Looking at this again now - I actually think this is invalid.
There is confusion here about two different sets of kwargs - one is kwargs
being passed directly to the "get_context_data" method, the other is
kwargs being passed to the get method
There is no expectation that kwargs passed to the get method (from the
URLconf) are automatically to be inserted into the context.
--
Ticket URL: <https://code.djangoproject.com/ticket/17242#comment:2>
Comment (by ptone):
I do see this pattern of passing the get kwargs to get_context_data in
TemplateView - but I think that is a bug there and will open a ticket for
that
--
Ticket URL: <https://code.djangoproject.com/ticket/17242#comment:3>
Comment (by Tim Graham):
Following up on the last comment, there's no plan to stop `TemplateView`
from putting `kwargs` in the context as per #19878 (wontfix).
--
Ticket URL: <https://code.djangoproject.com/ticket/17242#comment:4>