diff options
author | luxagraf <sng@luxagraf.net> | 2024-07-24 16:37:26 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2024-07-24 16:37:26 -0500 |
commit | 88e0f0ac2bd5874256bf7e84fa460965bacdd761 (patch) | |
tree | c79a3cc81a2a85be809605b9042b00ca32db095c /app/utils/widgets.py | |
parent | 074ec1e21a7bfa867bbb2c35057c19b5cfc375c4 (diff) |
general update
Diffstat (limited to 'app/utils/widgets.py')
-rw-r--r-- | app/utils/widgets.py | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/app/utils/widgets.py b/app/utils/widgets.py index 87b39ec..ffad8b1 100644 --- a/app/utils/widgets.py +++ b/app/utils/widgets.py @@ -1,8 +1,9 @@ import os from django import forms from django.contrib import admin + +from django.contrib.gis.admin import GISModelAdmin from django.contrib.admin.widgets import AdminFileWidget -from django.contrib.gis.admin import OSMGeoAdmin from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _ from django.template.loader import render_to_string @@ -14,6 +15,7 @@ import markdown from bs4 import BeautifulSoup from django.utils.module_loading import import_string +from utils.util import get_latlon class CustomSelectMultiple(SelectMultiple): @@ -130,15 +132,6 @@ class LGEntryFormSmall(forms.ModelForm): } -class OLAdminBase(OSMGeoAdmin): - default_lon = -9285175 - default_lat = 4025046 - default_zoom = 15 - units = True - scrollable = False - map_width = 700 - map_height = 425 - map_template = 'gis/admin/osm.html' - openlayers_url = '/static/admin/js/OpenLayers.js' - +class OLAdminBase(GISModelAdmin): + pass |