I do not have a better idea right now, but also do not know the django core 
code that well. Personally, as you could get all TemplateViews via Ack or 
another code search method, I do not think replacing them would take long.

> Am 14.08.2019 um 09:45 schrieb Adam Johnson <m...@adamj.eu>:
> 
> Hi,
> 
> After reading the ticket, I agree this could be deprecated as a backwards 
> incompatibility. The deprecation plan suggested by loic84 looks like it could 
> work but would be a bit unwieldy on large projects. Maybe there's another 
> path?
> 
> One thing that's not explicitly in the discussion: the view kwargs are always 
> accessible inside templates because ContextMixin.get_context_data passes 
> 'view', and view.kwargs is always set by View.setup().
> 
> Thanks,
> 
> Adam
> 
> On Wed, 14 Aug 2019 at 01:56, step21 <ste...@devtal.de 
> <mailto:ste...@devtal.de>> wrote:
> Hi all,
> 
> When developing I noticed an inconsistency - when using TemplateView, kwargs 
> are passed to context, but not when using FormView or others.
> 
> Source comparison:
> 
> https://dpaste.de/Jwdn <https://dpaste.de/Jwdn>
> 
> Relevant super old issue talking about depreciation here:
> https://code.djangoproject.com/ticket/19878 
> <https://code.djangoproject.com/ticket/19878>
> 
> I discussed this briefly on IRC and was told to post here, as it is an 
> inconsistency and maybe should be fixed but maybe wasn’t for a reason. Seeing 
> as there was already talk of depreciating it several years ago and no clear 
> opposition, maybe I could prepare a patch for it?
> Any thoughts?
> 
> F
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Django developers  (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-developers+unsubscr...@googlegroups.com 
> <mailto:django-developers%2bunsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/5072B2EE-D2B4-448C-936D-C5FDB5CD7132%40devtal.de
>  
> <https://groups.google.com/d/msgid/django-developers/5072B2EE-D2B4-448C-936D-C5FDB5CD7132%40devtal.de>.
> 
> 
> --
> Adam
> 
> --
> You received this message because you are subscribed to the Google Groups 
> "Django developers (Contributions to Django itself)" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to django-developers+unsubscr...@googlegroups.com 
> <mailto:django-developers+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/django-developers/CAMyDDM1Jxg468YdVyLMkhQnuaCq7E9VVB3ucJkRXSNptKRXTDQ%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/django-developers/CAMyDDM1Jxg468YdVyLMkhQnuaCq7E9VVB3ucJkRXSNptKRXTDQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-developers+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/53F53122-8D8E-40BE-ADB9-F9AE77E737DA%40devtal.de.

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to