From 0fc6d5362bfed3e2222fa3476139126ee08a4ff9 Mon Sep 17 00:00:00 2001 From: Andrew Miller Date: Fri, 13 Dec 2024 16:44:53 +0000 Subject: Fixed #26007 -- Clarified SingleObjectTemplateResponseMixin.get_template_names() docs. --- docs/ref/class-based-views/mixins-single-object.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/class-based-views/mixins-single-object.txt b/docs/ref/class-based-views/mixins-single-object.txt index 1378e10823..2e96422fc7 100644 --- a/docs/ref/class-based-views/mixins-single-object.txt +++ b/docs/ref/class-based-views/mixins-single-object.txt @@ -164,9 +164,10 @@ Single object mixins .. method:: get_template_names() - Returns a list of candidate template names. Returns the following list: + Returns a list of candidate template names. Return a list containing + ``template_name``, if set on the value. Otherwise, return a list + containing: - * the value of ``template_name`` on the view (if provided) * the contents of the ``template_name_field`` field on the object instance that the view is operating upon (if available) * ``/.html`` -- cgit v1.3