Working on setting up some generic views this evening, I ran into a problem that I'd run up against before. For some reason, I can't understand the very good documentation and always run up against the problem of referencing the queryset in the template.
The queryset is passed as 'queryset' in urls.py, but in the template it is not referenced as queryset, but some other name depending on the generic view.In this evening's case, I was using the 'django.views.generic.date_based.archive_index' view, and couldn't figure out the name by which to reference my objects?!? After trying object_list, object, queryset, and any other name I could think of, I added the debug toolbar to the project at it kindly showed be the variable ('latest' in this case)Ubuntu 9.10 comes out at the end of the month, and I've been testing it. It looks great, but unfortunately, it isn't working very well with my Intel video chip :( And that was supposed to be one of the improvements for this release...
Hopefully some one on the forum'll be able to help me fix it.