class documentation

class WeekArchiveView(MultipleObjectTemplateResponseMixin, BaseWeekArchiveView): (source)

View In Hierarchy

List of objects published in a given week.

Class Variable template_name_suffix Undocumented

Inherited from MultipleObjectTemplateResponseMixin:

Method get_template_names Return a list of template names to be used for the request. Must return a list. May not be called if render_to_response is overridden.

Inherited from TemplateResponseMixin (via MultipleObjectTemplateResponseMixin):

Method render_to_response Return a response, using the `response_class` for this view, with a template rendered with the given context.
Class Variable content_type Undocumented
Class Variable template_engine Undocumented
Class Variable template_name Undocumented

Inherited from BaseWeekArchiveView (via MultipleObjectTemplateResponseMixin, TemplateResponseMixin):

Method get_dated_items Return (date_list, items, extra_context) for this request.

Inherited from YearMixin (via MultipleObjectTemplateResponseMixin, TemplateResponseMixin, BaseWeekArchiveView):

Method get_next_year Get the next valid year.
Method get_previous_year Get the previous valid year.
Method get_year Return the year for which this view should display data.
Method get_year_format Get a year format string in strptime syntax to be used to parse the year from url variables.
Class Variable year Undocumented
Class Variable year_format Undocumented
Method _get_current_year Return the start date of the current interval.
Method _get_next_year Return the start date of the next interval.

Inherited from WeekMixin (via MultipleObjectTemplateResponseMixin, TemplateResponseMixin, BaseWeekArchiveView, YearMixin):

Method get_next_week Get the next valid week.
Method get_previous_week Get the previous valid week.
Method get_week Return the week for which this view should display data.
Method get_week_format Get a week format string in strptime syntax to be used to parse the week from url variables.
Class Variable week Undocumented
Class Variable week_format Undocumented
Method _get_current_week Return the start date of the current interval.
Method _get_next_week Return the start date of the next interval.
Method _get_weekday Return the weekday for a given date.

Inherited from BaseDateListView (via MultipleObjectTemplateResponseMixin, TemplateResponseMixin, BaseWeekArchiveView, YearMixin, WeekMixin):

Method get Undocumented
Method get_date_list Get a date list by calling `queryset.dates/datetimes()`, checking along the way for empty lists that aren't allowed.
Method get_date_list_period Get the aggregation period for the list of dates: 'year', 'month', or 'day'.
Method get_dated_queryset Get a queryset properly filtered according to `allow_future` and any extra lookup kwargs.
Method get_ordering Return the field or fields to use for ordering the queryset; use the date field by default.
Class Variable allow_empty Undocumented
Class Variable date_list_period Undocumented
Instance Variable date_list Undocumented
Instance Variable object_list Undocumented

Inherited from MultipleObjectMixin (via MultipleObjectTemplateResponseMixin, TemplateResponseMixin, BaseWeekArchiveView, YearMixin, WeekMixin, BaseDateListView):

Method get_allow_empty Return ``True`` if the view should display empty lists and ``False`` if a 404 should be raised instead.
Method get_context_data Get the context for this view.
Method get_context_object_name Get the name of the item to be used in the context.
Method get_paginate_by Get the number of items to paginate by, or ``None`` for no pagination.
Method get_paginate_orphans Return the maximum number of orphans extend the last page by when paginating.
Method get_paginator Return an instance of the paginator for this view.
Method get_queryset Return the list of items for this view.
Method paginate_queryset Paginate the queryset, if needed.
Class Variable context_object_name Undocumented
Class Variable model Undocumented
Class Variable ordering Undocumented
Class Variable page_kwarg Undocumented
Class Variable paginate_by Undocumented
Class Variable paginate_orphans Undocumented
Class Variable queryset Undocumented

Inherited from ContextMixin (via MultipleObjectTemplateResponseMixin, TemplateResponseMixin, BaseWeekArchiveView, YearMixin, WeekMixin, BaseDateListView, MultipleObjectMixin):

Class Variable extra_context Undocumented

Inherited from DateMixin (via MultipleObjectTemplateResponseMixin, TemplateResponseMixin, BaseWeekArchiveView, YearMixin, WeekMixin, BaseDateListView, MultipleObjectMixin, ContextMixin):

Method get_allow_future Return `True` if the view should be allowed to display objects from the future.
Method get_date_field Get the name of the date field to be used to filter by.
Class Variable allow_future Undocumented
Class Variable date_field Undocumented
Property uses_datetime_field Return `True` if the date field is a `DateTimeField` and `False` if it's a `DateField`.
Method _make_date_lookup_arg Convert a date into a datetime when the date field is a DateTimeField.
Method _make_single_date_lookup Get the lookup kwargs for filtering on a single date.