|
@@ -1,10 +1,10 @@
|
|
from django.contrib import admin
|
|
from django.contrib import admin
|
|
-from django.contrib.gis.admin import GeoModelAdmin
|
|
|
|
|
|
+from django.contrib.gis.admin import OSMGeoAdmin
|
|
|
|
|
|
from .models import *
|
|
from .models import *
|
|
|
|
|
|
@admin.register(Marker)
|
|
@admin.register(Marker)
|
|
-class MarkerAdmin(admin.ModelAdmin):
|
|
|
|
|
|
+class MarkerAdmin(OSMGeoAdmin):
|
|
list_display = ["timestamp", "location", "alt", "hdop", "speed"]
|
|
list_display = ["timestamp", "location", "alt", "hdop", "speed"]
|
|
|
|
|
|
@admin.register(Trip)
|
|
@admin.register(Trip)
|
|
@@ -12,5 +12,5 @@ class TripAdmin(admin.ModelAdmin):
|
|
list_display = ["startTime", "endTime", "name", "description"]
|
|
list_display = ["startTime", "endTime", "name", "description"]
|
|
|
|
|
|
@admin.register(CensoredLocation)
|
|
@admin.register(CensoredLocation)
|
|
-class CensoredLocationAdmin(GeoModelAdmin):
|
|
|
|
- list_display = ["location", "radius", "name"]
|
|
|
|
|
|
+class CensoredLocationAdmin(OSMGeoAdmin):
|
|
|
|
+ list_display = ["name", "location", "radius"]
|