mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
25 lines
491 B
Python
25 lines
491 B
Python
from django.contrib import admin
|
|
|
|
from .models import JobResult
|
|
|
|
|
|
#
|
|
# Reports
|
|
#
|
|
|
|
@admin.register(JobResult)
|
|
class JobResultAdmin(admin.ModelAdmin):
|
|
list_display = [
|
|
'obj_type', 'name', 'created', 'completed', 'user', 'status',
|
|
]
|
|
fields = [
|
|
'obj_type', 'name', 'created', 'completed', 'user', 'status', 'data', 'job_id'
|
|
]
|
|
list_filter = [
|
|
'status',
|
|
]
|
|
readonly_fields = fields
|
|
|
|
def has_add_permission(self, request):
|
|
return False
|