From 246af58b6e2172c041b8219e3badd6bf2798bc67 Mon Sep 17 00:00:00 2001 From: Sanj Date: Thu, 2 Feb 2012 19:17:26 +0530 Subject: [PATCH] routedetails field changes, silly --- chaloBEST/imports/import_atlas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chaloBEST/imports/import_atlas.py b/chaloBEST/imports/import_atlas.py index 2633ca0..e754ccb 100644 --- a/chaloBEST/imports/import_atlas.py +++ b/chaloBEST/imports/import_atlas.py @@ -229,7 +229,7 @@ Passed a route code, it gets stop codes for the first and last stop ''' def getFromToStopsForRoute(routeCode): # fromStr = row[2] - routeDetails = RouteDetail.objects.filter(rno=routeCode).order_by('stopsr') + routeDetails = RouteDetail.objects.filter(code=routeCode).order_by('serial') if routeDetails.count() == 0: return None fromStop = routeDetails[0].stop