Class-based generic views - flattened index
参见
provides a nice interface to navigate the class hierarchy of the built-in class-based views.
Attributes (with optional accessor):
方法
TemplateView
Attributes (with optional accessor):
方法
dispatch()
get()
head()
http_method_not_allowed()
setup()
RedirectView
class RedirectView
Attributes (with optional accessor):
方法
as_view()
delete()
get()
head()
http_method_not_allowed()
options()
post()
put()
DetailView
Attributes (with optional accessor):
context_object_name
[]extra_context
model
query_pk_and_slug
- [
get_queryset()
] - [
render_to_response()
] - [
get_slug_field()
] template_engine
- [
get_template_names()
] template_name_suffix
方法
dispatch()
get()
get_object()
head()
render_to_response()
ListView
Attributes (with optional accessor):
- [
get_allow_empty()
] context_object_name
[]extra_context
model
- [
get_ordering()
] - [
get_paginate_by()
] - [
get_paginate_orphans()
] queryset
[]response_class
[]template_engine
- [
get_template_names()
]
class FormView
Attributes (with optional accessor):
content_type
form_class
[]http_method_names
- [
get_initial()
] - [
get_prefix()
] - [
render_to_response()
] - [
get_success_url()
] template_name
[]
方法
CreateView
Attributes (with optional accessor):
context_object_name
[]extra_context
form_class
[]http_method_names
- [
get_initial()
] pk_url_kwarg
- [
get_prefix()
] queryset
[]response_class
[]slug_field
[]slug_url_kwarg
- [
get_success_url()
] template_name
[]template_name_field
方法
UpdateView
Attributes (with optional accessor):
context_object_name
[]extra_context
form_class
[]http_method_names
- [
get_initial()
] pk_url_kwarg
- [
get_prefix()
] queryset
[]response_class
[]slug_field
[]slug_url_kwarg
- [
get_success_url()
] template_name
[]template_name_field
方法
DeleteView
class DeleteView
Attributes (with optional accessor):
content_type
- [
get_context_object_name()
] http_method_names
pk_url_kwarg
queryset
[]response_class
[]slug_field
[]slug_url_kwarg
- [
get_success_url()
] template_name
[]template_name_field
方法
as_view()
delete()
get()
get_context_data()
head()
http_method_not_allowed()
post()
setup()
ArchiveIndexView
class ArchiveIndexView
Attributes (with optional accessor):
allow_empty
[]allow_future
[]content_type
- [
get_context_object_name()
] - [
get_date_field()
] http_method_names
ordering
[]paginate_by
[]paginate_orphans
[]paginator_class
- [
get_queryset()
] - [
render_to_response()
] template_name
[]template_name_suffix
方法
dispatch()
get()
get_date_list()
get_dated_queryset()
head()
http_method_not_allowed()
render_to_response()
- [
get_allow_empty()
] - [
get_allow_future()
] context_object_name
[]date_field
[]extra_context
make_object_list
[]model
- [
get_ordering()
] - [
get_paginate_by()
] - [
get_paginate_orphans()
] queryset
[]response_class
[]template_engine
- [
get_template_names()
] year
[]year_format
[]
方法
MonthArchiveView
class MonthArchiveView
Attributes (with optional accessor):
allow_empty
[]allow_future
[]content_type
- [
get_context_object_name()
] - [
get_date_field()
] http_method_names
month
[]month_format
[]ordering
[]paginate_by
[]paginate_orphans
[]paginator_class
- [
get_queryset()
] - [
render_to_response()
] template_name
[]template_name_suffix
- [
get_year()
] - [
get_year_format()
]
方法
dispatch()
get()
get_date_list()
get_dated_queryset()
get_previous_month()
head()
paginate_queryset()
setup()
WeekArchiveView
class WeekArchiveView
Attributes (with optional accessor):
allow_empty
[]allow_future
[]content_type
- [
get_context_object_name()
] - [
get_date_field()
] http_method_names
ordering
[]paginate_by
[]paginate_orphans
[]paginator_class
- [
get_queryset()
] - [
render_to_response()
] template_name
[]template_name_suffix
- [
get_week()
] - [
get_week_format()
] - [
get_year()
] - [
get_year_format()
]
方法
dispatch()
get()
get_date_list()
get_dated_queryset()
head()
http_method_not_allowed()
render_to_response()
DayArchiveView
Attributes (with optional accessor):
- [
get_allow_empty()
] - [
get_allow_future()
] context_object_name
[]date_field
[]day
[]day_format
[]extra_context
model
- [
get_month()
] - [
get_month_format()
] - [
get_ordering()
] - [
get_paginate_by()
] - [
get_paginate_orphans()
] queryset
[]response_class
[]template_engine
- [
get_template_names()
] year
[]year_format
[]
方法
as_view()
get()
get_context_data()
get_dated_items()
get_next_day()
get_paginator()
get_previous_month()
head()
paginate_queryset()
setup()
TodayArchiveView
class TodayArchiveView
Attributes (with optional accessor):
allow_empty
[]allow_future
[]content_type
- [
get_context_object_name()
] - [
get_date_field()
] - [
get_day()
] - [
get_day_format()
] http_method_names
month
[]month_format
[]ordering
[]paginate_by
[]paginate_orphans
[]paginator_class
- [
get_queryset()
] - [
render_to_response()
] template_name
[]template_name_suffix
- [
get_year()
] - [
get_year_format()
]
方法
dispatch()
get()
get_date_list()
get_dated_queryset()
get_next_month()
get_previous_day()
head()
http_method_not_allowed()
render_to_response()
Attributes (with optional accessor):
- [
get_allow_future()
] context_object_name
[]date_field
[]day
[]day_format
[]extra_context
model
- [
get_month()
] - [
get_month_format()
] query_pk_and_slug
- [
get_queryset()
] - [
render_to_response()
] - [
get_slug_field()
] template_engine
- [
get_template_names()
] template_name_suffix
- [
get_year()
] - [
get_year_format()
]
方法