categories.views.CategoryRelatedDetail

CategoryRelatedDetail#

class categories.views.CategoryRelatedDetail(**kwargs)[source]#

Detailed view for a category relation.

Methods

as_view(**initkwargs)

Main entry point for a request-response process.

dispatch(request, *args, **kwargs)

get(request, *args, **kwargs)

get_context_data(**kwargs)

Insert the single object into the context dict.

get_context_object_name(obj)

Get the name to use for the object.

get_object(**kwargs)

Get the object to render.

get_queryset()

Return the QuerySet that will be used to look up the object.

get_slug_field()

Get the name of a slug field to be used to look up by slug.

get_template_names()

Get all template names.

http_method_not_allowed(request, *args, **kwargs)

options(request, *args, **kwargs)

Handle responding to requests for the OPTIONS HTTP verb.

render_to_response(context, **response_kwargs)

Return a response, using the response_class for this view, with a template rendered with the given context.

setup(request, *args, **kwargs)

Initialize attributes shared by all view methods.

Attributes

content_type

context_object_name

extra_context

http_method_names

model

object_name_field

path_field

pk_url_kwarg

query_pk_and_slug

queryset

slug_field

slug_url_kwarg

template_engine

template_name

template_name_field

template_name_suffix