admin.py 442 B

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