id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 26007,SingleObjectTemplateResponseMixin.get_template_names does not return names stack properly.,Chris Cogdon,Chris Cogdon,"The docstring for SingleObjectTemplateResponseMixin.get_template_names() implies that a particular list of names is being returned. However, if SingleObjectTemplateResponseMixin.get_template_names() (the super) returns anything, then only the template_name will be returned. In addition, the name obtained by using self.template_name_field is inserted at 0, implying that there is something to insert it in front of, which is impossible given the current implementation, and conflicts with the documentation. By inference, it appears that the intended implementation is that the following names are returned, in this order: * a template derived from the template_name_field field of the object. * a template derived from the super (the template_name) attribute of the view * a template derived from the object's model name or self.model's name, with the template_name_suffix appended. Change will need some refactoring of the method, change to the docstring, and the documentation. I'll provide a pull request.",Bug,assigned,Generic views,1.9,Normal,,,,Accepted,1,0,0,1,0,0