def locations(request):
agent = get_agent(request)
locations = Location.objects.all()
nolocs = Location.objects.filter(latitude=0.0)
latitude = settings.MAP_LATITUDE
longitude = settings.MAP_LONGITUDE
zoom = settings.MAP_ZOOM
return render_to_response("valueaccounting/locations.html", {
"agent": agent,
"locations": locations,
"nolocs": nolocs,
"latitude": latitude,
"longitude": longitude,
"zoom": zoom,
"help": get_help("locations"),
}, context_instance=RequestContext(request))
评论列表
文章目录