try extra_js

This commit is contained in:
Sanj 2011-08-25 17:49:19 +05:30
parent 9dd062d7d8
commit f710ea8088

View File

@ -66,14 +66,14 @@ class FeatureAdmin(admin.OSMGeoAdmin):
list_display = ('__unicode__', 'feature_type_name', 'time_start', 'time_end',)
list_per_page = 12
list_filter = (FeatureTypeFilter,)
openlayers_url = 'http://openlayers.org/dev/OpenLayers.js'
# openlayers_url = 'http://openlayers.org/dev/OpenLayers.js'
openlayers_img_path = None
form = featuresForm
# map_template = 'gis/admin/osm.html'
# default_lon = 72.855211097628413
# default_lat = 19.415775291486027
# default_zoom = 4
# extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js']
extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js', 'http://openlayers.org/dev/OpenLayers.js']
class FeatureTypeAdmin(admin.ModelAdmin):
list_display = ('code', 'name', 'description', 'feature_class',)