archive_year doesn't add a list of objects to the context by default. Instead, it adds date_list, a list of months that have objects available in the given year.
To add object_list to the context, use the optional argument make_object_list=True when calling archive_year. For more info, look at the docs at http://docs.djangoproject.com/en/dev/ref/generic-views/#django-views-generic-date-based-archive-year Alasdair On Aug 11, 1:27 am, Matthew <[email protected]> wrote: > I am using Django's generic views to create a blog site. The > templates I created, entry_archive_day, entry_archive_month, > entry_archive, and entry_detail all work perfectly, but > entry_archive_year does not. > > Instead, it is simply a blank page. It looks like it sees no objects > in 'object_list'. > > I know that 'archive' uses a 'latest' list instead of 'object_list', > but that's not the case with 'archive_year', correct? > > Thanks, > Matthew --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

