Jan Dittberner
2d05580ed3
- show created/modified fields in admin - add verbose output to management command - add date hierarchy and action filters in admin
20 lines
510 B
Python
20 lines
510 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", "creator")
|
|
date_hierarchy = "created"
|
|
readonly_fields = ("created", "modified")
|
|
|
|
def has_add_permission(self, request):
|
|
return False
|