Commit 2f87dbee authored by stef's avatar stef
Browse files

[enh] included descriptions of reports in the admin if

parent 526bd0e3
from django.contrib import admin from django.contrib import admin
from bt import models from bt import models
from django.contrib.comments.models import Comment as DComment
from django.contrib.contenttypes import generic
class CommentInline(admin.TabularInline):
model = models.Comment
max_num = 1
class ViolationAdmin(admin.ModelAdmin): class ViolationAdmin(admin.ModelAdmin):
list_display = ('state', 'country', 'operator', 'contract', 'resource_name', 'media', 'activationid') list_display = ('state', 'country', 'operator', 'contract', 'resource_name', 'media', 'activationid')
list_filter = ('state', 'operator', 'contract', 'resource_name', 'media', 'country') list_filter = ('state', 'operator', 'contract', 'resource_name', 'media', 'country')
inlines = [CommentInline, ], ViolationAdmin), ViolationAdmin)
class CommentAdmin(admin.ModelAdmin): class CommentAdmin(admin.ModelAdmin):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment