remove relation inline; try to fix broken base-map
This commit is contained in:
parent
069742262b
commit
7ca34d42bd
|
@ -13,16 +13,17 @@ class FeatureRelationInline(admin.TabularInline):
|
||||||
class FeatureAdmin(admin.GeoModelAdmin):
|
class FeatureAdmin(admin.GeoModelAdmin):
|
||||||
search_fields = ['preferred_name']
|
search_fields = ['preferred_name']
|
||||||
list_filter = ('feature_type',)
|
list_filter = ('feature_type',)
|
||||||
inlines = [FeatureNamesInline, FeatureRelationInline]
|
inlines = [FeatureNamesInline]
|
||||||
list_per_page = 500
|
list_per_page = 500
|
||||||
openlayers_url = 'http://openlayers.org/dev/OpenLayers.js'
|
openlayers_url = 'http://openlayers.org/dev/OpenLayers.js'
|
||||||
openlayers_img_path = None
|
openlayers_img_path = None
|
||||||
# map_template = 'gis/admin/osm.html'
|
map_template = 'gis/admin/osm.html'
|
||||||
# default_lon = 72.855211097628413
|
# default_lon = 72.855211097628413
|
||||||
# default_lat = 19.415775291486027
|
# default_lat = 19.415775291486027
|
||||||
# default_zoom = 4
|
# default_zoom = 4
|
||||||
# extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js']
|
extra_js = ['http://openstreetmap.org/openlayers/OpenStreetMap.js']
|
||||||
|
|
||||||
admin.site.register(Feature, FeatureAdmin)
|
admin.site.register(Feature, FeatureAdmin)
|
||||||
admin.site.register(TimeFrame)
|
admin.site.register(TimeFrame)
|
||||||
admin.site.register(FeatureType)
|
admin.site.register(FeatureType)
|
||||||
|
admin.site.register(Relationship)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user