2014-12-29 15:55:57 +01:00
|
|
|
"""
|
|
|
|
This module defines the admin interface for the taskresults app.
|
|
|
|
|
|
|
|
"""
|
|
|
|
from __future__ import absolute_import
|
|
|
|
|
|
|
|
from django.contrib import admin
|
|
|
|
|
|
|
|
from .models import TaskResult
|
|
|
|
|
|
|
|
|
2016-09-25 16:36:31 +02:00
|
|
|
@admin.register(TaskResult)
|
|
|
|
class TaskResultAdmin(admin.ModelAdmin):
|
2023-04-29 11:10:23 +02:00
|
|
|
list_display = ("task_id", "creator", "signature", "finished", "state")
|
|
|
|
list_filter = ("finished", "creator")
|
|
|
|
date_hierarchy = "created"
|
|
|
|
readonly_fields = ("created", "modified")
|
|
|
|
|
|
|
|
def has_add_permission(self, request):
|
|
|
|
return False
|