Cet index présente une autre organisation de la documentation de référence des vues fondées sur les classes. Pour chaque vue, les attributs et méthodes réels de l’arborescence de classe sont représentés sous la vue. Pour consulter une documentation de référence organisée par la classe définissant le comportement, voir Vues fondées sur les classes.
Voir aussi
Classy Class-Based Views propose une interface agréable pour naviguer dans la hiérarchie des classes des vues intégrées fondées sur des classes.
TemplateView¶TemplateView¶Attributs (avec accesseur facultatif) :
content_typehttp_method_namesresponse_class [render_to_response()]template_enginetemplate_name [get_template_names()]Méthodes
RedirectView¶RedirectView¶Attributs (avec accesseur facultatif) :
Méthodes
as_view()delete()dispatch()get()head()http_method_not_allowed()options()post()put()DetailView¶DetailView¶Attributs (avec accesseur facultatif) :
content_typecontext_object_name [get_context_object_name()]http_method_namesmodelpk_url_kwargqueryset [get_queryset()]response_class [render_to_response()]slug_field [get_slug_field()]slug_url_kwargtemplate_enginetemplate_name [get_template_names()]template_name_fieldtemplate_name_suffixMéthodes
ListView¶ListView¶Attributs (avec accesseur facultatif) :
allow_empty [get_allow_empty()]content_typecontext_object_name [get_context_object_name()]http_method_namesmodelordering [get_ordering()]paginate_by [get_paginate_by()]paginate_orphans [get_paginate_orphans()]paginator_classqueryset [get_queryset()]response_class [render_to_response()]template_enginetemplate_name [get_template_names()]template_name_suffixMéthodes
FormView¶FormView¶Attributs (avec accesseur facultatif) :
content_typeform_class [get_form_class()]http_method_namesinitial [get_initial()]prefix [get_prefix()]response_class [render_to_response()]success_url [get_success_url()]template_enginetemplate_name [get_template_names()]Méthodes
CreateView¶CreateView¶Attributs (avec accesseur facultatif) :
content_typecontext_object_name [get_context_object_name()]fieldsform_class [get_form_class()]http_method_namesinitial [get_initial()]modelpk_url_kwargprefix [get_prefix()]queryset [get_queryset()]response_class [render_to_response()]slug_field [get_slug_field()]slug_url_kwargsuccess_url [get_success_url()]template_enginetemplate_name [get_template_names()]template_name_fieldtemplate_name_suffixMéthodes
UpdateView¶UpdateView¶Attributs (avec accesseur facultatif) :
content_typecontext_object_name [get_context_object_name()]fieldsform_class [get_form_class()]http_method_namesinitial [get_initial()]modelpk_url_kwargprefix [get_prefix()]queryset [get_queryset()]response_class [render_to_response()]slug_field [get_slug_field()]slug_url_kwargsuccess_url [get_success_url()]template_enginetemplate_name [get_template_names()]template_name_fieldtemplate_name_suffixMéthodes
DeleteView¶DeleteView¶Attributs (avec accesseur facultatif) :
content_typecontext_object_name [get_context_object_name()]http_method_namesmodelpk_url_kwargqueryset [get_queryset()]response_class [render_to_response()]slug_field [get_slug_field()]slug_url_kwargsuccess_url [get_success_url()]template_enginetemplate_name [get_template_names()]template_name_fieldtemplate_name_suffixMéthodes
as_view()delete()dispatch()get()get_context_data()get_object()head()http_method_not_allowed()post()render_to_response()ArchiveIndexView¶ArchiveIndexView¶Attributs (avec accesseur facultatif) :
allow_empty [get_allow_empty()]allow_future [get_allow_future()]content_typecontext_object_name [get_context_object_name()]date_field [get_date_field()]http_method_namesmodelordering [get_ordering()]paginate_by [get_paginate_by()]paginate_orphans [get_paginate_orphans()]paginator_classqueryset [get_queryset()]response_class [render_to_response()]template_enginetemplate_name [get_template_names()]template_name_suffixMéthodes
YearArchiveView¶YearArchiveView¶Attributs (avec accesseur facultatif) :
allow_empty [get_allow_empty()]allow_future [get_allow_future()]content_typecontext_object_name [get_context_object_name()]date_field [get_date_field()]http_method_namesmake_object_list [get_make_object_list()]modelordering [get_ordering()]paginate_by [get_paginate_by()]paginate_orphans [get_paginate_orphans()]paginator_classqueryset [get_queryset()]response_class [render_to_response()]template_enginetemplate_name [get_template_names()]template_name_suffixyear [get_year()]year_format [get_year_format()]Méthodes
MonthArchiveView¶MonthArchiveView¶Attributs (avec accesseur facultatif) :
allow_empty [get_allow_empty()]allow_future [get_allow_future()]content_typecontext_object_name [get_context_object_name()]date_field [get_date_field()]http_method_namesmodelmonth [get_month()]month_format [get_month_format()]ordering [get_ordering()]paginate_by [get_paginate_by()]paginate_orphans [get_paginate_orphans()]paginator_classqueryset [get_queryset()]response_class [render_to_response()]template_enginetemplate_name [get_template_names()]template_name_suffixyear [get_year()]year_format [get_year_format()]Méthodes
WeekArchiveView¶WeekArchiveView¶Attributs (avec accesseur facultatif) :
allow_empty [get_allow_empty()]allow_future [get_allow_future()]content_typecontext_object_name [get_context_object_name()]date_field [get_date_field()]http_method_namesmodelordering [get_ordering()]paginate_by [get_paginate_by()]paginate_orphans [get_paginate_orphans()]paginator_classqueryset [get_queryset()]response_class [render_to_response()]template_enginetemplate_name [get_template_names()]template_name_suffixweek [get_week()]week_format [get_week_format()]year [get_year()]year_format [get_year_format()]Méthodes
DayArchiveView¶DayArchiveView¶Attributs (avec accesseur facultatif) :
allow_empty [get_allow_empty()]allow_future [get_allow_future()]content_typecontext_object_name [get_context_object_name()]date_field [get_date_field()]day [get_day()]day_format [get_day_format()]http_method_namesmodelmonth [get_month()]month_format [get_month_format()]ordering [get_ordering()]paginate_by [get_paginate_by()]paginate_orphans [get_paginate_orphans()]paginator_classqueryset [get_queryset()]response_class [render_to_response()]template_enginetemplate_name [get_template_names()]template_name_suffixyear [get_year()]year_format [get_year_format()]Méthodes
TodayArchiveView¶TodayArchiveView¶Attributs (avec accesseur facultatif) :
allow_empty [get_allow_empty()]allow_future [get_allow_future()]content_typecontext_object_name [get_context_object_name()]date_field [get_date_field()]day [get_day()]day_format [get_day_format()]http_method_namesmodelmonth [get_month()]month_format [get_month_format()]ordering [get_ordering()]paginate_by [get_paginate_by()]paginate_orphans [get_paginate_orphans()]paginator_classqueryset [get_queryset()]response_class [render_to_response()]template_enginetemplate_name [get_template_names()]template_name_suffixyear [get_year()]year_format [get_year_format()]Méthodes
DateDetailView¶DateDetailView¶Attributs (avec accesseur facultatif) :
allow_future [get_allow_future()]content_typecontext_object_name [get_context_object_name()]date_field [get_date_field()]day [get_day()]day_format [get_day_format()]http_method_namesmodelmonth [get_month()]month_format [get_month_format()]pk_url_kwargqueryset [get_queryset()]response_class [render_to_response()]slug_field [get_slug_field()]slug_url_kwargtemplate_enginetemplate_name [get_template_names()]template_name_fieldtemplate_name_suffixyear [get_year()]year_format [get_year_format()]Méthodes
déc. 02, 2017