Commit 70c937c6 authored by stef's avatar stef
Browse files

[enh] improved admin listing for objects

parent 2b15bbff
...@@ -2,19 +2,22 @@ from django.contrib import admin ...@@ -2,19 +2,22 @@ from django.contrib import admin
from bt import models from bt import models
class ViolationAdmin(admin.ModelAdmin): class ViolationAdmin(admin.ModelAdmin):
pass list_display = ('country', 'operator', 'contract', 'resource_name', 'media', 'activationid')
list_filter = ('operator', 'contract', 'resource_name', 'media', 'country'), ViolationAdmin), ViolationAdmin)
class CommentAdmin(admin.ModelAdmin): class CommentAdmin(admin.ModelAdmin):
pass list_display = ('violation', 'submitter_name', 'comment')
list_filter = ('violation', 'submitter_name'), CommentAdmin), CommentAdmin)
class AttachmentAdmin(admin.ModelAdmin): class AttachmentAdmin(admin.ModelAdmin):
pass list_display = ('name', 'comment'), AttachmentAdmin), AttachmentAdmin)
class ConfirmationAdmin(admin.ModelAdmin): class ConfirmationAdmin(admin.ModelAdmin):
pass list_display = ('violation', 'key')
list_filter = ('violation__operator', 'violation__contract', 'violation__resource_name', 'violation__media', 'violation__country'), ConfirmationAdmin), ConfirmationAdmin)
class FeaturedCaseAdmin(admin.ModelAdmin): class FeaturedCaseAdmin(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