class documentation

class SingleObjectTemplateResponseMixin(TemplateResponseMixin):

Known subclasses: django.views.generic.CreateView, django.views.generic.DateDetailView, django.views.generic.DeleteView, django.views.generic.DetailView, django.views.generic.UpdateView

View In Hierarchy

Undocumented

Method get​_template​_names Return a list of template names to be used for the request. May not be called if render_to_response() is overridden. Return the following list:
Class Variable template​_name​_field Undocumented
Class Variable template​_name​_suffix Undocumented

Inherited from TemplateResponseMixin:

Method render​_to​_response Return a response, using the response_class for this view, with a template rendered with the given context.
Class Variable content​_type Undocumented
Class Variable template​_engine Undocumented
Class Variable template​_name Undocumented
def get_template_names(self):

Return a list of template names to be used for the request. May not be called if render_to_response() is overridden. Return the following list:

  • 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)
  • <app_label>/<model_name><template_name_suffix>.html
template_name_field =

Undocumented