diff options
author | luxagraf <sng@luxagraf.net> | 2018-02-03 16:00:18 -0600 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2018-02-03 16:00:18 -0600 |
commit | 89a5c0785676bcce601bbdf1f21fdcffbeb6c86a (patch) | |
tree | 9b3bcc87d7058f689185a50f9173f0896f249c17 /app/sketches/admin.py | |
parent | 31b07974cddc8843bab58f5b3e3a6bac9b529433 (diff) |
fixed some admin bugs with sketches
Diffstat (limited to 'app/sketches/admin.py')
-rw-r--r-- | app/sketches/admin.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/app/sketches/admin.py b/app/sketches/admin.py index 9f3c087..41715aa 100644 --- a/app/sketches/admin.py +++ b/app/sketches/admin.py @@ -1,9 +1,10 @@ from django.contrib import admin from django.contrib.gis.admin import OSMGeoAdmin from django.contrib.contenttypes.admin import GenericTabularInline + from .models import Sketch from utils.widgets import LGEntryForm, OLAdminBase - +from utils.util import get_latlon @admin.register(Sketch) class SketchAdmin(OLAdminBase): @@ -27,6 +28,11 @@ class SketchAdmin(OLAdminBase): } ), ) + lat, lon = get_latlon() + default_lon = lon + default_lat = lat + default_zoom = 10 + class Media: js = ('image-loader.js',) |