Download this file
12 lines (10 with data), 338 Bytes
| from models import *
from django.shortcuts import render_to_response
def compare_locations(request,lid1,lid2):
l1=Location.objects.get(id=lid1)
l2=Location.objects.get(id=lid2)
l1.compare(l2)
l2.compare(l1)
l2.hide_rplot=True
data={'locs':[l1,l2]}
return render_to_response('bike/location_compare.html',data)
|
×
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.