summaryrefslogtreecommitdiff
path: root/app/planner
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/planner
parent33e50f81111a5ad7833aa7b5498126468d7f11e8 (diff)
updated code to remove OSMGeoAdmin for django 5
Diffstat (limited to 'app/planner')
-rw-r--r--app/planner/admin.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/planner/admin.py b/app/planner/admin.py
index 910558a..09048a6 100644
--- a/app/planner/admin.py
+++ b/app/planner/admin.py
@@ -1,6 +1,5 @@
from django.contrib import admin
from django import forms
-from django.contrib.gis.admin import OSMGeoAdmin
from django.contrib.contenttypes.admin import GenericStackedInline
from utils.widgets import AdminImageWidget, LGEntryForm
@@ -10,7 +9,7 @@ from media.models import LuxImage
from utils.util import get_latlon
@admin.register(CampIdea)
-class PlannerAdmin(OSMGeoAdmin):
+class PlannerAdmin(admin.ModelAdmin):
list_display = ('name', )
#list_filter = ('has_water', )
# options for OSM map Using custom ESRI topo map
@@ -34,7 +33,7 @@ class PlannerAdmin(OSMGeoAdmin):
@admin.register(Camp)
-class PlannerAdmin(OSMGeoAdmin):
+class PlannerAdmin(admin.ModelAdmin):
list_display = ('name', 'date_arrive', 'date_depart', 'distance_from_previous', 'price', 'site_number',)
list_filter = ('date_arrive', 'has_water' )
# options for OSM map Using custom ESRI topo map
@@ -58,5 +57,5 @@ class PlannerAdmin(OSMGeoAdmin):
@admin.register(Trip)
-class TripAdmin(OSMGeoAdmin):
+class TripAdmin(admin.ModelAdmin):
pass