13 lines
480 B
Python
13 lines
480 B
Python
from django.contrib import admin
|
|
|
|
from .models import ThreatScan
|
|
|
|
|
|
@admin.register(ThreatScan)
|
|
class ThreatScanAdmin(admin.ModelAdmin):
|
|
list_display = ("id", "scan_type", "risk_score", "risk_level", "target_preview", "model_version", "created_at")
|
|
list_filter = ("scan_type", "risk_level", "model_version", "created_at")
|
|
search_fields = ("target_preview", "content_hash", "verdict")
|
|
readonly_fields = ("created_at", "content_hash")
|
|
ordering = ("-created_at",)
|