From a79703258a4fad280921a18971d01b16d16a8f96 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 3 Feb 2012 19:15:46 +0530 Subject: [PATCH] now with pretty maps --- chaloBEST/mumbai/admin.py | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/chaloBEST/mumbai/admin.py b/chaloBEST/mumbai/admin.py index 4ebf175..e8e51ff 100644 --- a/chaloBEST/mumbai/admin.py +++ b/chaloBEST/mumbai/admin.py @@ -12,6 +12,9 @@ class AreaAdmin(admin.OSMGeoAdmin): formfield_overrides = { models.TextField: {'widget': forms.TextInput}, } + default_lon = 72.855211097628413 + default_lat = 19.415775291486027 + default_zoom = 4 class RoadAdmin(admin.OSMGeoAdmin): @@ -21,6 +24,10 @@ class RoadAdmin(admin.OSMGeoAdmin): formfield_overrides = { models.TextField: {'widget': forms.TextInput}, } + default_lon = 72.855211097628413 + default_lat = 19.415775291486027 + default_zoom = 4 + class FareAdmin(admin.ModelAdmin): list_display = ("slab","ordinary","limited","express","ac","ac_express") @@ -61,6 +68,10 @@ class StopAdmin(admin.OSMGeoAdmin): formfield_overrides = { models.TextField: {'widget': forms.TextInput}, } + default_lon = 72.855211097628413 + default_lat = 19.415775291486027 + default_zoom = 4 + class RouteDetailAdmin(admin.ModelAdmin): @@ -90,12 +101,16 @@ class HardCodedRouteAdmin(admin.ModelAdmin): models.TextField: {'widget': forms.TextInput}, } -class LandmarkAdmin(admin.ModelAdmin): +class LandmarkAdmin(admin.OSMGeoAdmin): list_display = ("name", "name_mr") #list_editable = ("name","name_mr") formfield_overrides = { models.TextField: {'widget': forms.TextInput}, } + default_lon = 72.855211097628413 + default_lat = 19.415775291486027 + default_zoom = 4 + class StopLocationAdmin(admin.OSMGeoAdmin): list_display = ("stop", "direction", "point") @@ -103,6 +118,10 @@ class StopLocationAdmin(admin.OSMGeoAdmin): formfield_overrides = { models.TextField: {'widget': forms.TextInput}, } + default_lon = 72.855211097628413 + default_lat = 19.415775291486027 + default_zoom = 4 + class DepotAdmin(admin.ModelAdmin): list_display = ("code", "name", "stop")