#26007: SingleObjectTemplateResponseMixin.get_template_names does not return 
names
stack properly.
-------------------------------+---------------------------------------
     Reporter:  Chris Cogdon   |                    Owner:  Andy Miller
         Type:  Bug            |                   Status:  assigned
    Component:  Generic views  |                  Version:  1.9
     Severity:  Normal         |               Resolution:
     Keywords:                 |             Triage Stage:  Accepted
    Has patch:  1              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  1
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+---------------------------------------
Comment (by Carlton Gibson):

 The expectation that when `self.template_name` is set
 `get_template_names()` returns `[self.template_name]` is very established.
 TemplateResponseMixin, which defines this, is close to the shared
 behaviour of ≈all the GCBVs. Adjusting that for just for object detail
 views would be a strange inconsistency to add. Thus I think, the
 additional logic from SingleObjectTemplateResponseMixin should continue to
 only kick in after that, and then, yes, the docstring can be clarified to
 make that clearer.

 Improving the error messages too sounds all for the good.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/26007#comment:9>
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 [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/01070193b4bc162b-b69c13a6-0d8b-424a-ac12-c9ecbd88e612-000000%40eu-central-1.amazonses.com.

Reply via email to