from django.shortcuts import render_to_response,get_object_or_404 from django.template import RequestContext from blog.models import Entry from locations.models import Location, Country, Region def list_view(request): qs = Entry.objects.filter(status__exact=1) cl = Country.objects.filter(visited=True).exclude(name='default') rl = Region.objects.all() return render_to_response('archives/map.html', {'object_list': qs,'country_list':cl,'region_list':rl}, context_instance=RequestContext(request))