admin.py 486 B

12345678910111213141516
  1. from django.contrib import admin
  2. from django.contrib.gis.admin import GeoModelAdmin
  3. from .models import *
  4. @admin.register(Marker)
  5. class MarkerAdmin(admin.ModelAdmin):
  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(GeoModelAdmin):
  12. list_display = ["location", "radius", "name"]