Общие представления на основе классов - общий указатель ¶
Этот указатель представляет собой еще одну организацию справочной документации по представлениям на основе классов. Для каждого представления фактические атрибуты и методы дерева классов представлены под представлением. Справочные материалы, организованные по классу, определяющему поведение, см. В разделе Представления на основе классов .
Смотрите также
Классные представления на основе классов предоставляют удобный интерфейс для навигации по иерархии классов встроенных представлений на основе классов.
Простые общие представления ¶
TemplateView
¶
-
класс
TemplateView
¶
Атрибуты (с дополнительным аксессуаром):
content_type
extra_context
http_method_names
response_class
[render_to_response()
]template_engine
template_name
[get_template_names()
]
методы
RedirectView
¶
-
класс
RedirectView
¶
Атрибуты (с дополнительным аксессуаром):
методы
as_view()
delete()
dispatch()
get()
head()
http_method_not_allowed()
options()
post()
put()
setup()
Подробные виды ¶
DetailView
¶
-
класс
DetailView
¶
Атрибуты (с дополнительным аксессуаром):
content_type
context_object_name
[get_context_object_name()
]extra_context
http_method_names
model
pk_url_kwarg
query_pk_and_slug
queryset
[get_queryset()
]response_class
[render_to_response()
]slug_field
[get_slug_field()
]slug_url_kwarg
template_engine
template_name
[get_template_names()
]template_name_field
template_name_suffix
методы
Представления списка ¶
ListView
¶
-
класс
ListView
¶
Атрибуты (с дополнительным аксессуаром):
allow_empty
[get_allow_empty()
]content_type
context_object_name
[get_context_object_name()
]extra_context
http_method_names
model
ordering
[get_ordering()
]paginate_by
[get_paginate_by()
]paginate_orphans
[get_paginate_orphans()
]paginator_class
queryset
[get_queryset()
]response_class
[render_to_response()
]template_engine
template_name
[get_template_names()
]template_name_suffix
методы
Редактировать представления ¶
FormView
¶
-
класс
FormView
¶
Атрибуты (с дополнительным аксессуаром):
content_type
extra_context
form_class
[get_form_class()
]http_method_names
initial
[get_initial()
]prefix
[get_prefix()
]response_class
[render_to_response()
]success_url
[get_success_url()
]template_engine
template_name
[get_template_names()
]
методы
CreateView
¶
-
класс
CreateView
¶
Атрибуты (с дополнительным аксессуаром):
content_type
context_object_name
[get_context_object_name()
]extra_context
fields
form_class
[get_form_class()
]http_method_names
initial
[get_initial()
]model
pk_url_kwarg
prefix
[get_prefix()
]query_pk_and_slug
queryset
[get_queryset()
]response_class
[render_to_response()
]slug_field
[get_slug_field()
]slug_url_kwarg
success_url
[get_success_url()
]template_engine
template_name
[get_template_names()
]template_name_field
template_name_suffix
методы
UpdateView
¶
-
класс
UpdateView
¶
Атрибуты (с дополнительным аксессуаром):
content_type
context_object_name
[get_context_object_name()
]extra_context
fields
form_class
[get_form_class()
]http_method_names
initial
[get_initial()
]model
pk_url_kwarg
prefix
[get_prefix()
]query_pk_and_slug
queryset
[get_queryset()
]response_class
[render_to_response()
]slug_field
[get_slug_field()
]slug_url_kwarg
success_url
[get_success_url()
]template_engine
template_name
[get_template_names()
]template_name_field
template_name_suffix
методы
DeleteView
¶
-
класс
DeleteView
¶
Атрибуты (с дополнительным аксессуаром):
content_type
context_object_name
[get_context_object_name()
]extra_context
http_method_names
model
pk_url_kwarg
query_pk_and_slug
queryset
[get_queryset()
]response_class
[render_to_response()
]slug_field
[get_slug_field()
]slug_url_kwarg
success_url
[get_success_url()
]template_engine
template_name
[get_template_names()
]template_name_field
template_name_suffix
методы
as_view()
delete()
dispatch()
get()
get_context_data()
get_object()
head()
http_method_not_allowed()
post()
render_to_response()
setup()
Просмотр по дате ¶
ArchiveIndexView
¶
-
класс
ArchiveIndexView
¶
Атрибуты (с дополнительным аксессуаром):
allow_empty
[get_allow_empty()
]allow_future
[get_allow_future()
]content_type
context_object_name
[get_context_object_name()
]date_field
[get_date_field()
]extra_context
http_method_names
model
ordering
[get_ordering()
]paginate_by
[get_paginate_by()
]paginate_orphans
[get_paginate_orphans()
]paginator_class
queryset
[get_queryset()
]response_class
[render_to_response()
]template_engine
template_name
[get_template_names()
]template_name_suffix
методы
YearArchiveView
¶
-
класс
YearArchiveView
¶
Атрибуты (с дополнительным аксессуаром):
allow_empty
[get_allow_empty()
]allow_future
[get_allow_future()
]content_type
context_object_name
[get_context_object_name()
]date_field
[get_date_field()
]extra_context
http_method_names
make_object_list
[get_make_object_list()
]model
ordering
[get_ordering()
]paginate_by
[get_paginate_by()
]paginate_orphans
[get_paginate_orphans()
]paginator_class
queryset
[get_queryset()
]response_class
[render_to_response()
]template_engine
template_name
[get_template_names()
]template_name_suffix
year
[get_year()
]year_format
[get_year_format()
]
методы
MonthArchiveView
¶
-
класс
MonthArchiveView
¶
Атрибуты (с дополнительным аксессуаром):
allow_empty
[get_allow_empty()
]allow_future
[get_allow_future()
]content_type
context_object_name
[get_context_object_name()
]date_field
[get_date_field()
]extra_context
http_method_names
model
month
[get_month()
]month_format
[get_month_format()
]ordering
[get_ordering()
]paginate_by
[get_paginate_by()
]paginate_orphans
[get_paginate_orphans()
]paginator_class
queryset
[get_queryset()
]response_class
[render_to_response()
]template_engine
template_name
[get_template_names()
]template_name_suffix
year
[get_year()
]year_format
[get_year_format()
]
методы
WeekArchiveView
¶
-
класс
WeekArchiveView
¶
Атрибуты (с дополнительным аксессуаром):
allow_empty
[get_allow_empty()
]allow_future
[get_allow_future()
]content_type
context_object_name
[get_context_object_name()
]date_field
[get_date_field()
]extra_context
http_method_names
model
ordering
[get_ordering()
]paginate_by
[get_paginate_by()
]paginate_orphans
[get_paginate_orphans()
]paginator_class
queryset
[get_queryset()
]response_class
[render_to_response()
]template_engine
template_name
[get_template_names()
]template_name_suffix
week
[get_week()
]week_format
[get_week_format()
]year
[get_year()
]year_format
[get_year_format()
]
методы
DayArchiveView
¶
-
класс
DayArchiveView
¶
Атрибуты (с дополнительным аксессуаром):
allow_empty
[get_allow_empty()
]allow_future
[get_allow_future()
]content_type
context_object_name
[get_context_object_name()
]date_field
[get_date_field()
]day
[get_day()
]day_format
[get_day_format()
]extra_context
http_method_names
model
month
[get_month()
]month_format
[get_month_format()
]ordering
[get_ordering()
]paginate_by
[get_paginate_by()
]paginate_orphans
[get_paginate_orphans()
]paginator_class
queryset
[get_queryset()
]response_class
[render_to_response()
]template_engine
template_name
[get_template_names()
]template_name_suffix
year
[get_year()
]year_format
[get_year_format()
]
методы
TodayArchiveView
¶
-
класс
TodayArchiveView
¶
Атрибуты (с дополнительным аксессуаром):
allow_empty
[get_allow_empty()
]allow_future
[get_allow_future()
]content_type
context_object_name
[get_context_object_name()
]date_field
[get_date_field()
]day
[get_day()
]day_format
[get_day_format()
]extra_context
http_method_names
model
month
[get_month()
]month_format
[get_month_format()
]ordering
[get_ordering()
]paginate_by
[get_paginate_by()
]paginate_orphans
[get_paginate_orphans()
]paginator_class
queryset
[get_queryset()
]response_class
[render_to_response()
]template_engine
template_name
[get_template_names()
]template_name_suffix
year
[get_year()
]year_format
[get_year_format()
]
методы
DateDetailView
¶
-
класс
DateDetailView
¶
Атрибуты (с дополнительным аксессуаром):
allow_future
[get_allow_future()
]content_type
context_object_name
[get_context_object_name()
]date_field
[get_date_field()
]day
[get_day()
]day_format
[get_day_format()
]extra_context
http_method_names
model
month
[get_month()
]month_format
[get_month_format()
]pk_url_kwarg
query_pk_and_slug
queryset
[get_queryset()
]response_class
[render_to_response()
]slug_field
[get_slug_field()
]slug_url_kwarg
template_engine
template_name
[get_template_names()
]template_name_field
template_name_suffix
year
[get_year()
]year_format
[get_year_format()
]
методы