Improve TaskResult admin view

Provide a better presentation of TaskResult instances by specifying the
list_display fields and allowing to filter finished and unfinished tasks.
This commit is contained in:
Jan Dittberner 2016-09-25 16:36:31 +02:00
parent 150c9111ca
commit 36d082006b

View file

@ -9,4 +9,7 @@ from django.contrib import admin
from .models import TaskResult
admin.site.register(TaskResult)
@admin.register(TaskResult)
class TaskResultAdmin(admin.ModelAdmin):
list_display = ('task_id', 'creator', 'signature', 'finished', 'state')
list_filter = ('finished',)