diff options
Diffstat (limited to 'app/planner/admin.py')
-rw-r--r-- | app/planner/admin.py | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/app/planner/admin.py b/app/planner/admin.py index 5d533c8..910558a 100644 --- a/app/planner/admin.py +++ b/app/planner/admin.py @@ -4,11 +4,34 @@ from django.contrib.gis.admin import OSMGeoAdmin from django.contrib.contenttypes.admin import GenericStackedInline from utils.widgets import AdminImageWidget, LGEntryForm -from .models import Camp, Trip +from .models import Camp, Trip, CampIdea from media.models import LuxImage from utils.util import get_latlon +@admin.register(CampIdea) +class PlannerAdmin(OSMGeoAdmin): + list_display = ('name', ) + #list_filter = ('has_water', ) + # options for OSM map Using custom ESRI topo map + lat, lon = get_latlon() + default_lon = lon + default_lat = lat + default_zoom = 10 + units = True + scrollable = False + map_width = 700 + map_height = 425 + map_template = 'gis/admin/osm.html' + openlayers_url = '/static/admin/js/OpenLayers.js' + + class Media: + js = ('image-loader.js', 'next-prev-links.js') + #'product-loader.js', + css = { + "all": ("my_styles.css",) + } + @admin.register(Camp) class PlannerAdmin(OSMGeoAdmin): |