- def article_archive_view(self, request, year=None, month=None, day=None, node=None, extra_context=None):
- if not self.article_archive_page:
- raise Http404
- articles = self.newsletter.articles.all()
- if year:
- articles = articles.filter(date__year=year)
- if month:
- articles = articles.filter(date__month=month)
- if day:
- articles = articles.filter(date__day=day)
- context = {}
- context.update(extra_context or {})
- context.update({'newsletter': self.newsletter, 'year': year, 'month': month, 'day': day, 'articles': articles})
- return self.article_archive_page.render_to_response(node, request, extra_context=context)
-