#26253: TemplateResponse and BasicTemplateResponse: error message causes 
TypeError
---------------------------------+------------------------
     Reporter:  davidswelt       |      Owner:  nobody
         Type:  Uncategorized    |     Status:  new
    Component:  Template system  |    Version:  1.9
     Severity:  Normal           |   Keywords:  Teamplates
 Triage Stage:  Unreviewed       |  Has patch:  1
Easy pickings:  1                |      UI/UX:  0
---------------------------------+------------------------
 When TemplateResponse or BasicTemplateResponse are called, a TypeError is
 thrown.

 This is because their __init__() creates a BackendTemplate giving only one
 argument to the constructor.

 The resulting error is obviously confusing and obfuscates the warning.

 The attached patch addresses the issue, although I am unsure whether one
 should assume, by default, that a DjangoTemplate was given.

--
Ticket URL: <https://code.djangoproject.com/ticket/26253>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/053.22b1f7ccd697d371145d16eb2bb5eddd%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to