00001 from models import * 00002 from django.shortcuts import render_to_response 00003 00004 def compare_locations(request,lid1,lid2): 00005 l1=Location.objects.get(id=lid1) 00006 l2=Location.objects.get(id=lid2) 00007 l1.compare(l2) 00008 l2.compare(l1) 00009 l2.hide_rplot=True 00010 data={'locs':[l1,l2]} 00011 return render_to_response('bike/location_compare.html',data)