123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657 |
- ===========================================
- Class-based generic views - flattened index
- ===========================================
- This index provides an alternate organization of the reference documentation
- for class-based views. For each view, the effective attributes and methods from
- the class tree are represented under that view. For the reference
- documentation organized by the class which defines the behavior, see
- :doc:`Class-based views</ref/class-based-views/index>`.
- .. seealso::
- `Classy Class-Based Views <https://ccbv.co.uk/>`_ provides a nice interface
- to navigate the class hierarchy of the built-in class-based views.
- Simple generic views
- ====================
- ``View``
- --------
- .. class:: View()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.base.View.http_method_names`
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.base.View.setup`
- ``TemplateView``
- ----------------
- .. class:: TemplateView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * :meth:`~django.views.generic.base.ContextMixin.get_context_data`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- ``RedirectView``
- ----------------
- .. class:: RedirectView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.base.RedirectView.pattern_name`
- * :attr:`~django.views.generic.base.RedirectView.permanent`
- * :attr:`~django.views.generic.base.RedirectView.query_string`
- * :attr:`~django.views.generic.base.RedirectView.url` [:meth:`~django.views.generic.base.RedirectView.get_redirect_url`]
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * ``delete()``
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * ``options()``
- * ``post()``
- * ``put()``
- * :meth:`~django.views.generic.base.View.setup`
- Detail Views
- ============
- ``DetailView``
- --------------
- .. class:: DetailView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.context_object_name` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.model`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.pk_url_kwarg`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.query_pk_and_slug`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.queryset` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_field` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_slug_field`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_url_kwarg`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field`
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix`
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * :meth:`~django.views.generic.detail.BaseDetailView.get`
- * :meth:`~django.views.generic.detail.SingleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.detail.SingleObjectMixin.get_object`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- List Views
- ==========
- ``ListView``
- ------------
- .. class:: ListView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.list.MultipleObjectMixin.allow_empty` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_allow_empty`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.context_object_name` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.model`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.ordering` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_ordering`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_by` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_by`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_orphans` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_orphans`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginator_class`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.queryset` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix`
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * :meth:`~django.views.generic.list.BaseListView.get`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_paginator`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.paginate_queryset`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- Editing views
- =============
- ``FormView``
- ------------
- .. class:: FormView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.edit.FormMixin.form_class` [:meth:`~django.views.generic.edit.FormMixin.get_form_class`]
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.edit.FormMixin.initial` [:meth:`~django.views.generic.edit.FormMixin.get_initial`]
- * :attr:`~django.views.generic.edit.FormMixin.prefix` [:meth:`~django.views.generic.edit.FormMixin.get_prefix`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.edit.FormMixin.success_url` [:meth:`~django.views.generic.edit.FormMixin.get_success_url`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * :meth:`~django.views.generic.edit.FormMixin.form_invalid`
- * :meth:`~django.views.generic.edit.FormMixin.form_valid`
- * :meth:`~django.views.generic.edit.ProcessFormView.get`
- * :meth:`~django.views.generic.edit.FormMixin.get_context_data`
- * :meth:`~django.views.generic.edit.FormMixin.get_form`
- * :meth:`~django.views.generic.edit.FormMixin.get_form_kwargs`
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.edit.ProcessFormView.post`
- * :meth:`~django.views.generic.edit.ProcessFormView.put`
- * :meth:`~django.views.generic.base.View.setup`
- ``CreateView``
- --------------
- .. class:: CreateView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.context_object_name` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.edit.ModelFormMixin.fields`
- * :attr:`~django.views.generic.edit.FormMixin.form_class` [:meth:`~django.views.generic.edit.ModelFormMixin.get_form_class`]
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.edit.FormMixin.initial` [:meth:`~django.views.generic.edit.FormMixin.get_initial`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.model`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.pk_url_kwarg`
- * :attr:`~django.views.generic.edit.FormMixin.prefix` [:meth:`~django.views.generic.edit.FormMixin.get_prefix`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.query_pk_and_slug`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.queryset` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_field` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_slug_field`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_url_kwarg`
- * :attr:`~django.views.generic.edit.FormMixin.success_url` [:meth:`~django.views.generic.edit.ModelFormMixin.get_success_url`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field`
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix`
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * :meth:`~django.views.generic.edit.FormMixin.form_invalid`
- * :meth:`~django.views.generic.edit.ModelFormMixin.form_valid`
- * :meth:`~django.views.generic.edit.ProcessFormView.get`
- * :meth:`~django.views.generic.edit.FormMixin.get_context_data`
- * :meth:`~django.views.generic.edit.FormMixin.get_form`
- * :meth:`~django.views.generic.edit.ModelFormMixin.get_form_kwargs`
- * :meth:`~django.views.generic.detail.SingleObjectMixin.get_object`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.edit.ProcessFormView.post`
- * ``put()``
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- ``UpdateView``
- --------------
- .. class:: UpdateView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.context_object_name` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.edit.ModelFormMixin.fields`
- * :attr:`~django.views.generic.edit.FormMixin.form_class` [:meth:`~django.views.generic.edit.ModelFormMixin.get_form_class`]
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.edit.FormMixin.initial` [:meth:`~django.views.generic.edit.FormMixin.get_initial`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.model`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.pk_url_kwarg`
- * :attr:`~django.views.generic.edit.FormMixin.prefix` [:meth:`~django.views.generic.edit.FormMixin.get_prefix`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.query_pk_and_slug`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.queryset` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_field` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_slug_field`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_url_kwarg`
- * :attr:`~django.views.generic.edit.FormMixin.success_url` [:meth:`~django.views.generic.edit.ModelFormMixin.get_success_url`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field`
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix`
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * :meth:`~django.views.generic.edit.FormMixin.form_invalid`
- * :meth:`~django.views.generic.edit.ModelFormMixin.form_valid`
- * :meth:`~django.views.generic.edit.ProcessFormView.get`
- * :meth:`~django.views.generic.edit.FormMixin.get_context_data`
- * :meth:`~django.views.generic.edit.FormMixin.get_form`
- * :meth:`~django.views.generic.edit.ModelFormMixin.get_form_kwargs`
- * :meth:`~django.views.generic.detail.SingleObjectMixin.get_object`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.edit.ProcessFormView.post`
- * ``put()``
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- ``DeleteView``
- --------------
- .. class:: DeleteView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.context_object_name` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.model`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.pk_url_kwarg`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.query_pk_and_slug`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.queryset` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_field` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_slug_field`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_url_kwarg`
- * :attr:`~django.views.generic.edit.DeletionMixin.success_url` [:meth:`~django.views.generic.edit.DeletionMixin.get_success_url`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field`
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix`
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * ``delete()``
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * :meth:`~django.views.generic.detail.SingleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.detail.SingleObjectMixin.get_object`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * ``post()``
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- Date-based views
- ================
- ``ArchiveIndexView``
- --------------------
- .. class:: ArchiveIndexView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.list.MultipleObjectMixin.allow_empty` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_allow_empty`]
- * :attr:`~django.views.generic.dates.DateMixin.allow_future` [:meth:`~django.views.generic.dates.DateMixin.get_allow_future`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.context_object_name` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.dates.DateMixin.date_field` [:meth:`~django.views.generic.dates.DateMixin.get_date_field`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.model`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.ordering` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_ordering`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_by` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_by`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_orphans` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_orphans`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginator_class`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.queryset` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix`
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_date_list`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_items`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_queryset`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_paginator`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.paginate_queryset`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- ``YearArchiveView``
- -------------------
- .. class:: YearArchiveView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.list.MultipleObjectMixin.allow_empty` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_allow_empty`]
- * :attr:`~django.views.generic.dates.DateMixin.allow_future` [:meth:`~django.views.generic.dates.DateMixin.get_allow_future`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.context_object_name` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.dates.DateMixin.date_field` [:meth:`~django.views.generic.dates.DateMixin.get_date_field`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.dates.YearArchiveView.make_object_list` [:meth:`~django.views.generic.dates.YearArchiveView.get_make_object_list`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.model`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.ordering` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_ordering`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_by` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_by`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_orphans` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_orphans`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginator_class`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.queryset` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix`
- * :attr:`~django.views.generic.dates.YearMixin.year` [:meth:`~django.views.generic.dates.YearMixin.get_year`]
- * :attr:`~django.views.generic.dates.YearMixin.year_format` [:meth:`~django.views.generic.dates.YearMixin.get_year_format`]
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_date_list`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_items`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_queryset`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_paginator`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.paginate_queryset`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- ``MonthArchiveView``
- --------------------
- .. class:: MonthArchiveView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.list.MultipleObjectMixin.allow_empty` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_allow_empty`]
- * :attr:`~django.views.generic.dates.DateMixin.allow_future` [:meth:`~django.views.generic.dates.DateMixin.get_allow_future`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.context_object_name` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.dates.DateMixin.date_field` [:meth:`~django.views.generic.dates.DateMixin.get_date_field`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.model`
- * :attr:`~django.views.generic.dates.MonthMixin.month` [:meth:`~django.views.generic.dates.MonthMixin.get_month`]
- * :attr:`~django.views.generic.dates.MonthMixin.month_format` [:meth:`~django.views.generic.dates.MonthMixin.get_month_format`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.ordering` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_ordering`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_by` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_by`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_orphans` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_orphans`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginator_class`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.queryset` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix`
- * :attr:`~django.views.generic.dates.YearMixin.year` [:meth:`~django.views.generic.dates.YearMixin.get_year`]
- * :attr:`~django.views.generic.dates.YearMixin.year_format` [:meth:`~django.views.generic.dates.YearMixin.get_year_format`]
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_date_list`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_items`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_queryset`
- * :meth:`~django.views.generic.dates.MonthMixin.get_next_month`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_paginator`
- * :meth:`~django.views.generic.dates.MonthMixin.get_previous_month`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.paginate_queryset`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- ``WeekArchiveView``
- -------------------
- .. class:: WeekArchiveView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.list.MultipleObjectMixin.allow_empty` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_allow_empty`]
- * :attr:`~django.views.generic.dates.DateMixin.allow_future` [:meth:`~django.views.generic.dates.DateMixin.get_allow_future`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.context_object_name` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.dates.DateMixin.date_field` [:meth:`~django.views.generic.dates.DateMixin.get_date_field`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.model`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.ordering` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_ordering`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_by` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_by`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_orphans` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_orphans`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginator_class`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.queryset` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix`
- * :attr:`~django.views.generic.dates.WeekMixin.week` [:meth:`~django.views.generic.dates.WeekMixin.get_week`]
- * :attr:`~django.views.generic.dates.WeekMixin.week_format` [:meth:`~django.views.generic.dates.WeekMixin.get_week_format`]
- * :attr:`~django.views.generic.dates.YearMixin.year` [:meth:`~django.views.generic.dates.YearMixin.get_year`]
- * :attr:`~django.views.generic.dates.YearMixin.year_format` [:meth:`~django.views.generic.dates.YearMixin.get_year_format`]
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_date_list`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_items`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_queryset`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_paginator`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.paginate_queryset`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- ``DayArchiveView``
- ------------------
- .. class:: DayArchiveView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.list.MultipleObjectMixin.allow_empty` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_allow_empty`]
- * :attr:`~django.views.generic.dates.DateMixin.allow_future` [:meth:`~django.views.generic.dates.DateMixin.get_allow_future`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.context_object_name` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.dates.DateMixin.date_field` [:meth:`~django.views.generic.dates.DateMixin.get_date_field`]
- * :attr:`~django.views.generic.dates.DayMixin.day` [:meth:`~django.views.generic.dates.DayMixin.get_day`]
- * :attr:`~django.views.generic.dates.DayMixin.day_format` [:meth:`~django.views.generic.dates.DayMixin.get_day_format`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.model`
- * :attr:`~django.views.generic.dates.MonthMixin.month` [:meth:`~django.views.generic.dates.MonthMixin.get_month`]
- * :attr:`~django.views.generic.dates.MonthMixin.month_format` [:meth:`~django.views.generic.dates.MonthMixin.get_month_format`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.ordering` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_ordering`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_by` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_by`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_orphans` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_orphans`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginator_class`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.queryset` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix`
- * :attr:`~django.views.generic.dates.YearMixin.year` [:meth:`~django.views.generic.dates.YearMixin.get_year`]
- * :attr:`~django.views.generic.dates.YearMixin.year_format` [:meth:`~django.views.generic.dates.YearMixin.get_year_format`]
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_date_list`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_items`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_queryset`
- * :meth:`~django.views.generic.dates.DayMixin.get_next_day`
- * :meth:`~django.views.generic.dates.MonthMixin.get_next_month`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_paginator`
- * :meth:`~django.views.generic.dates.DayMixin.get_previous_day`
- * :meth:`~django.views.generic.dates.MonthMixin.get_previous_month`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.paginate_queryset`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- ``TodayArchiveView``
- --------------------
- .. class:: TodayArchiveView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.list.MultipleObjectMixin.allow_empty` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_allow_empty`]
- * :attr:`~django.views.generic.dates.DateMixin.allow_future` [:meth:`~django.views.generic.dates.DateMixin.get_allow_future`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.context_object_name` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.dates.DateMixin.date_field` [:meth:`~django.views.generic.dates.DateMixin.get_date_field`]
- * :attr:`~django.views.generic.dates.DayMixin.day` [:meth:`~django.views.generic.dates.DayMixin.get_day`]
- * :attr:`~django.views.generic.dates.DayMixin.day_format` [:meth:`~django.views.generic.dates.DayMixin.get_day_format`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.model`
- * :attr:`~django.views.generic.dates.MonthMixin.month` [:meth:`~django.views.generic.dates.MonthMixin.get_month`]
- * :attr:`~django.views.generic.dates.MonthMixin.month_format` [:meth:`~django.views.generic.dates.MonthMixin.get_month_format`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.ordering` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_ordering`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_by` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_by`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginate_orphans` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_paginate_orphans`]
- * :attr:`~django.views.generic.list.MultipleObjectMixin.paginator_class`
- * :attr:`~django.views.generic.list.MultipleObjectMixin.queryset` [:meth:`~django.views.generic.list.MultipleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.list.MultipleObjectTemplateResponseMixin.template_name_suffix`
- * :attr:`~django.views.generic.dates.YearMixin.year` [:meth:`~django.views.generic.dates.YearMixin.get_year`]
- * :attr:`~django.views.generic.dates.YearMixin.year_format` [:meth:`~django.views.generic.dates.YearMixin.get_year_format`]
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_date_list`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_items`
- * :meth:`~django.views.generic.dates.BaseDateListView.get_dated_queryset`
- * :meth:`~django.views.generic.dates.DayMixin.get_next_day`
- * :meth:`~django.views.generic.dates.MonthMixin.get_next_month`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.get_paginator`
- * :meth:`~django.views.generic.dates.DayMixin.get_previous_day`
- * :meth:`~django.views.generic.dates.MonthMixin.get_previous_month`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.list.MultipleObjectMixin.paginate_queryset`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
- ``DateDetailView``
- ------------------
- .. class:: DateDetailView()
- **Attributes** (with optional accessor):
- * :attr:`~django.views.generic.dates.DateMixin.allow_future` [:meth:`~django.views.generic.dates.DateMixin.get_allow_future`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.content_type`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.context_object_name` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_context_object_name`]
- * :attr:`~django.views.generic.dates.DateMixin.date_field` [:meth:`~django.views.generic.dates.DateMixin.get_date_field`]
- * :attr:`~django.views.generic.dates.DayMixin.day` [:meth:`~django.views.generic.dates.DayMixin.get_day`]
- * :attr:`~django.views.generic.dates.DayMixin.day_format` [:meth:`~django.views.generic.dates.DayMixin.get_day_format`]
- * :attr:`~django.views.generic.base.ContextMixin.extra_context`
- * :attr:`~django.views.generic.base.View.http_method_names`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.model`
- * :attr:`~django.views.generic.dates.MonthMixin.month` [:meth:`~django.views.generic.dates.MonthMixin.get_month`]
- * :attr:`~django.views.generic.dates.MonthMixin.month_format` [:meth:`~django.views.generic.dates.MonthMixin.get_month_format`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.pk_url_kwarg`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.query_pk_and_slug`
- * :attr:`~django.views.generic.detail.SingleObjectMixin.queryset` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_queryset`]
- * :attr:`~django.views.generic.base.TemplateResponseMixin.response_class` [:meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_field` [:meth:`~django.views.generic.detail.SingleObjectMixin.get_slug_field`]
- * :attr:`~django.views.generic.detail.SingleObjectMixin.slug_url_kwarg`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_engine`
- * :attr:`~django.views.generic.base.TemplateResponseMixin.template_name` [:meth:`~django.views.generic.base.TemplateResponseMixin.get_template_names`]
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_field`
- * :attr:`~django.views.generic.detail.SingleObjectTemplateResponseMixin.template_name_suffix`
- * :attr:`~django.views.generic.dates.YearMixin.year` [:meth:`~django.views.generic.dates.YearMixin.get_year`]
- * :attr:`~django.views.generic.dates.YearMixin.year_format` [:meth:`~django.views.generic.dates.YearMixin.get_year_format`]
- **Methods**
- * :meth:`~django.views.generic.base.View.as_view`
- * :meth:`~django.views.generic.base.View.dispatch`
- * ``get()``
- * :meth:`~django.views.generic.detail.SingleObjectMixin.get_context_data`
- * :meth:`~django.views.generic.dates.DayMixin.get_next_day`
- * :meth:`~django.views.generic.dates.MonthMixin.get_next_month`
- * :meth:`~django.views.generic.detail.SingleObjectMixin.get_object`
- * :meth:`~django.views.generic.dates.DayMixin.get_previous_day`
- * :meth:`~django.views.generic.dates.MonthMixin.get_previous_month`
- * ``head()``
- * :meth:`~django.views.generic.base.View.http_method_not_allowed`
- * :meth:`~django.views.generic.base.TemplateResponseMixin.render_to_response`
- * :meth:`~django.views.generic.base.View.setup`
|