summaryrefslogtreecommitdiff
path: root/app/utils
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2024-05-01 11:44:22 -0500
committerluxagraf <sng@luxagraf.net>2024-05-01 11:44:22 -0500
commit436ed48c5d5f37ed388424efc0ec7389ffee8b81 (patch)
tree61780870fde7b4c5b0a993840ab0bb29c0fec75f /app/utils
parent33e50f81111a5ad7833aa7b5498126468d7f11e8 (diff)
updated code to remove OSMGeoAdmin for django 5
Diffstat (limited to 'app/utils')
-rw-r--r--app/utils/widgets.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/utils/widgets.py b/app/utils/widgets.py
index 87b39ec..61f1722 100644
--- a/app/utils/widgets.py
+++ b/app/utils/widgets.py
@@ -2,7 +2,6 @@ import os
from django import forms
from django.contrib import admin
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
@@ -130,7 +129,7 @@ class LGEntryFormSmall(forms.ModelForm):
}
-class OLAdminBase(OSMGeoAdmin):
+class OLAdminBase(admin.ModelAdmin):
default_lon = -9285175
default_lat = 4025046
default_zoom = 15