summaryrefslogtreecommitdiff
path: root/apps/locations/views.py
blob: a59a2e58486683427ccc0d17ba1c504b1b32cc32 (plain)
1
2
3
4
5
6
7
8
9
10
11
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))