MCPcopy
hub / github.com/django/django / get_dated_items

Method get_dated_items

django/views/generic/dates.py:402–410  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

400 context_object_name = "latest"
401
402 def get_dated_items(self):
403 """Return (date_list, items, extra_context) for this request."""
404 qs = self.get_dated_queryset()
405 date_list = self.get_date_list(qs, ordering="DESC")
406
407 if not date_list:
408 qs = qs.none()
409
410 return (date_list, qs, {})
411
412
413class ArchiveIndexView(MultipleObjectTemplateResponseMixin, BaseArchiveIndexView):

Callers

nothing calls this directly

Calls 3

get_dated_querysetMethod · 0.80
get_date_listMethod · 0.80
noneMethod · 0.80

Tested by

no test coverage detected