categories.views.CategoryDetailView
CategoryDetailView#
- class categories.views.CategoryDetailView(**kwargs)[source]#
Detail view for a category.
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 category.
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 the potential 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_typecontext_object_nameextra_contexthttp_method_namespath_fieldpk_url_kwargquery_pk_and_slugquerysetslug_fieldslug_url_kwargtemplate_enginetemplate_nametemplate_name_fieldtemplate_name_suffix