loko/streetup/road_detection/admin.py
2026-07-22 14:48:40 +02:00

10 lines
405 B
Python

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']