summaryrefslogtreecommitdiff
path: root/app/posts
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/posts
parent33e50f81111a5ad7833aa7b5498126468d7f11e8 (diff)
updated code to remove OSMGeoAdmin for django 5
Diffstat (limited to 'app/posts')
-rw-r--r--app/posts/admin.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/posts/admin.py b/app/posts/admin.py
index d2d1a33..5c27f64 100644
--- a/app/posts/admin.py
+++ b/app/posts/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
@@ -11,7 +10,7 @@ from utils.util import get_latlon
@admin.register(Post)
-class PostAdmin(OSMGeoAdmin):
+class PostAdmin(admin.ModelAdmin):
form = LGEntryForm
def get_queryset(self, request):
@@ -96,7 +95,7 @@ class PostAdmin(OSMGeoAdmin):
@admin.register(Trip)
-class TripAdmin(OSMGeoAdmin):
+class TripAdmin(admin.ModelAdmin):
form = LGEntryForm
list_display = ('title', 'order', 'date_started' )
prepopulated_fields = {'slug': ('title',)}
@@ -127,7 +126,7 @@ class TripAdmin(OSMGeoAdmin):
@admin.register(Guide)
-class GuideAdmin(OSMGeoAdmin):
+class GuideAdmin(admin.ModelAdmin):
form = LGEntryForm
list_display = ('title', 'is_featured', 'slug' )
prepopulated_fields = {'slug': ('title',)}