summaryrefslogtreecommitdiff
path: root/app/locations/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/locations/admin.py')
-rw-r--r--app/locations/admin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/locations/admin.py b/app/locations/admin.py
index 03f0696..03a51d9 100644
--- a/app/locations/admin.py
+++ b/app/locations/admin.py
@@ -1,4 +1,5 @@
from django.contrib import admin
+from django.contrib.gis.admin import GISModelAdmin
from .models import Region, Country, Location, State, Route, LuxCheckIn, Campsite, GPXFile, GPXTrack, Track
@@ -160,7 +161,7 @@ class StateAdmin(admin.ModelAdmin):
@admin.register(Location)
-class LocationAdmin(admin.ModelAdmin):
+class LocationAdmin(OLAdminBase):
list_display = ('name', 'pub_date', 'parent', 'state', 'slug')
prepopulated_fields = {'slug': ('name',)}
search_fields = ('name', 'state')