From 436ed48c5d5f37ed388424efc0ec7389ffee8b81 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Wed, 1 May 2024 11:44:22 -0500 Subject: updated code to remove OSMGeoAdmin for django 5 --- app/utils/widgets.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'app/utils') 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 -- cgit v1.2.3-70-g09d2