admin.py 477 B

12345678910111213141516
  1. from django.contrib import admin
  2. from django.contrib.gis.admin import OSMGeoAdmin
  3. from .models import *
  4. @admin.register(Marker)
  5. class MarkerAdmin(OSMGeoAdmin):
  6. list_display = ["timestamp", "location", "alt", "hdop", "speed"]
  7. @admin.register(Trip)
  8. class TripAdmin(admin.ModelAdmin):
  9. list_display = ["startTime", "endTime", "name", "description"]
  10. @admin.register(CensoredLocation)
  11. class CensoredLocationAdmin(OSMGeoAdmin):
  12. list_display = ["name", "location", "radius"]