Do the actual heavy lifting of getting the dated items; this accepts a date object so that TodayArchiveView can be trivial.
(self, date)
| 605 | return self._get_dated_items(date) |
| 606 | |
| 607 | def _get_dated_items(self, date): |
| 608 | """ |
| 609 | Do the actual heavy lifting of getting the dated items; this accepts a |
| 610 | date object so that TodayArchiveView can be trivial. |
| 611 | """ |
| 612 | lookup_kwargs = self._make_single_date_lookup(date) |
| 613 | qs = self.get_dated_queryset(**lookup_kwargs) |
| 614 | |
| 615 | return ( |
| 616 | None, |
| 617 | qs, |
| 618 | { |
| 619 | "day": date, |
| 620 | "previous_day": self.get_previous_day(date), |
| 621 | "next_day": self.get_next_day(date), |
| 622 | "previous_month": self.get_previous_month(date), |
| 623 | "next_month": self.get_next_month(date), |
| 624 | }, |
| 625 | ) |
| 626 | |
| 627 | |
| 628 | class DayArchiveView(MultipleObjectTemplateResponseMixin, BaseDayArchiveView): |
no test coverage detected