now with pretty maps
This commit is contained in:
parent
dbd71c52e9
commit
a79703258a
|
@ -12,6 +12,9 @@ class AreaAdmin(admin.OSMGeoAdmin):
|
||||||
formfield_overrides = {
|
formfield_overrides = {
|
||||||
models.TextField: {'widget': forms.TextInput},
|
models.TextField: {'widget': forms.TextInput},
|
||||||
}
|
}
|
||||||
|
default_lon = 72.855211097628413
|
||||||
|
default_lat = 19.415775291486027
|
||||||
|
default_zoom = 4
|
||||||
|
|
||||||
|
|
||||||
class RoadAdmin(admin.OSMGeoAdmin):
|
class RoadAdmin(admin.OSMGeoAdmin):
|
||||||
|
@ -21,6 +24,10 @@ class RoadAdmin(admin.OSMGeoAdmin):
|
||||||
formfield_overrides = {
|
formfield_overrides = {
|
||||||
models.TextField: {'widget': forms.TextInput},
|
models.TextField: {'widget': forms.TextInput},
|
||||||
}
|
}
|
||||||
|
default_lon = 72.855211097628413
|
||||||
|
default_lat = 19.415775291486027
|
||||||
|
default_zoom = 4
|
||||||
|
|
||||||
|
|
||||||
class FareAdmin(admin.ModelAdmin):
|
class FareAdmin(admin.ModelAdmin):
|
||||||
list_display = ("slab","ordinary","limited","express","ac","ac_express")
|
list_display = ("slab","ordinary","limited","express","ac","ac_express")
|
||||||
|
@ -61,6 +68,10 @@ class StopAdmin(admin.OSMGeoAdmin):
|
||||||
formfield_overrides = {
|
formfield_overrides = {
|
||||||
models.TextField: {'widget': forms.TextInput},
|
models.TextField: {'widget': forms.TextInput},
|
||||||
}
|
}
|
||||||
|
default_lon = 72.855211097628413
|
||||||
|
default_lat = 19.415775291486027
|
||||||
|
default_zoom = 4
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class RouteDetailAdmin(admin.ModelAdmin):
|
class RouteDetailAdmin(admin.ModelAdmin):
|
||||||
|
@ -90,12 +101,16 @@ class HardCodedRouteAdmin(admin.ModelAdmin):
|
||||||
models.TextField: {'widget': forms.TextInput},
|
models.TextField: {'widget': forms.TextInput},
|
||||||
}
|
}
|
||||||
|
|
||||||
class LandmarkAdmin(admin.ModelAdmin):
|
class LandmarkAdmin(admin.OSMGeoAdmin):
|
||||||
list_display = ("name", "name_mr")
|
list_display = ("name", "name_mr")
|
||||||
#list_editable = ("name","name_mr")
|
#list_editable = ("name","name_mr")
|
||||||
formfield_overrides = {
|
formfield_overrides = {
|
||||||
models.TextField: {'widget': forms.TextInput},
|
models.TextField: {'widget': forms.TextInput},
|
||||||
}
|
}
|
||||||
|
default_lon = 72.855211097628413
|
||||||
|
default_lat = 19.415775291486027
|
||||||
|
default_zoom = 4
|
||||||
|
|
||||||
|
|
||||||
class StopLocationAdmin(admin.OSMGeoAdmin):
|
class StopLocationAdmin(admin.OSMGeoAdmin):
|
||||||
list_display = ("stop", "direction", "point")
|
list_display = ("stop", "direction", "point")
|
||||||
|
@ -103,6 +118,10 @@ class StopLocationAdmin(admin.OSMGeoAdmin):
|
||||||
formfield_overrides = {
|
formfield_overrides = {
|
||||||
models.TextField: {'widget': forms.TextInput},
|
models.TextField: {'widget': forms.TextInput},
|
||||||
}
|
}
|
||||||
|
default_lon = 72.855211097628413
|
||||||
|
default_lat = 19.415775291486027
|
||||||
|
default_zoom = 4
|
||||||
|
|
||||||
|
|
||||||
class DepotAdmin(admin.ModelAdmin):
|
class DepotAdmin(admin.ModelAdmin):
|
||||||
list_display = ("code", "name", "stop")
|
list_display = ("code", "name", "stop")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user