from django.contrib import admin from .models import PotholeDetection @admin.register(PotholeDetection) class PotholeDetectionAdmin(admin.ModelAdmin): list_display = ['id', 'created_by', 'detection_count', 'confidence_threshold', 'created_at'] list_filter = ['created_at', 'detection_count'] readonly_fields = ['detection_count', 'result_image', 'created_at'] ordering = ['-created_at']