Jan Dittberner
36d082006b
Provide a better presentation of TaskResult instances by specifying the list_display fields and allowing to filter finished and unfinished tasks.
15 lines
358 B
Python
15 lines
358 B
Python
"""
|
|
This module defines the admin interface for the taskresults app.
|
|
|
|
"""
|
|
from __future__ import absolute_import
|
|
|
|
from django.contrib import admin
|
|
|
|
from .models import TaskResult
|
|
|
|
|
|
@admin.register(TaskResult)
|
|
class TaskResultAdmin(admin.ModelAdmin):
|
|
list_display = ('task_id', 'creator', 'signature', 'finished', 'state')
|
|
list_filter = ('finished',)
|