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:
parent
150c9111ca
commit
36d082006b
1 changed files with 4 additions and 1 deletions
|
@ -9,4 +9,7 @@ from django.contrib import admin
|
||||||
from .models import TaskResult
|
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',)
|
||||||
|
|
Loading…
Reference in a new issue