|
@@ -1,10 +1,10 @@
|
|
from django.contrib import admin
|
|
from django.contrib import admin
|
|
-from django.contrib.gis.admin import OSMGeoAdmin
|
|
|
|
|
|
+from django.contrib.gis.admin import GISModelAdmin
|
|
|
|
|
|
from .models import *
|
|
from .models import *
|
|
|
|
|
|
@admin.register(Marker)
|
|
@admin.register(Marker)
|
|
-class MarkerAdmin(OSMGeoAdmin):
|
|
|
|
|
|
+class MarkerAdmin(GISModelAdmin):
|
|
list_display = ["timestamp", "location", "alt", "hdop", "speed"]
|
|
list_display = ["timestamp", "location", "alt", "hdop", "speed"]
|
|
|
|
|
|
@admin.register(Trip)
|
|
@admin.register(Trip)
|
|
@@ -13,5 +13,5 @@ class TripAdmin(admin.ModelAdmin):
|
|
readonly_fields = ["path", "distance", "topSpeed", "avgSpeed", "ascendHeight", "descendHeight", "movementTime", "totalTime", "center", "line"]
|
|
readonly_fields = ["path", "distance", "topSpeed", "avgSpeed", "ascendHeight", "descendHeight", "movementTime", "totalTime", "center", "line"]
|
|
exclude = ["path"]
|
|
exclude = ["path"]
|
|
@admin.register(CensoredLocation)
|
|
@admin.register(CensoredLocation)
|
|
-class CensoredLocationAdmin(OSMGeoAdmin):
|
|
|
|
|
|
+class CensoredLocationAdmin(GISModelAdmin):
|
|
list_display = ["name", "location", "radius"]
|
|
list_display = ["name", "location", "radius"]
|