added Arduino firmware concept files
This commit is contained in:
@@ -68,6 +68,14 @@ class ClassificationAdmin(admin.ModelAdmin):
|
||||
@admin.register(PendingEvent)
|
||||
class PendingEventAdmin(ClassificationAdmin):
|
||||
actions = ("approve_selected", "deny_selected")
|
||||
list_display = ("original_filename", "source_type", "sensor", "sensor_owner", "captured_at", "created_at", "primary_label", "primary_score", "duration")
|
||||
readonly_fields = ClassificationAdmin.readonly_fields + ("sensor_owner", "captured_at", "firmware_version", "device_metadata")
|
||||
fields = ClassificationAdmin.fields + ("sensor_owner", "captured_at", "firmware_version", "device_metadata", "pretty_classifier_response")
|
||||
|
||||
@admin.display(description=gettext_lazy("Sensor owner"))
|
||||
def sensor_owner(self, obj):
|
||||
return obj.sensor.owner if obj.sensor and obj.sensor.owner_id else "—"
|
||||
|
||||
change_form_template = "admin/fireworks_detect/pending_change_form.html"
|
||||
|
||||
def get_urls(self):
|
||||
|
||||
Reference in New Issue
Block a user