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
from bt import models
class ViolationAdmin(admin.ModelAdmin):
pass
list_display = ('country', 'operator', 'contract', 'resource_name', 'media', 'activationid')
list_filter = ('operator', 'contract', 'resource_name', 'media', 'country')
admin.site.register(models.Violation, ViolationAdmin)
class CommentAdmin(admin.ModelAdmin):
pass
list_display = ('violation', 'submitter_name', 'comment')
list_filter = ('violation', 'submitter_name')
admin.site.register(models.Comment, CommentAdmin)
class AttachmentAdmin(admin.ModelAdmin):
pass
list_display = ('name', 'comment')
admin.site.register(models.Attachment, AttachmentAdmin)
class ConfirmationAdmin(admin.ModelAdmin):
pass
list_display = ('violation', 'key')
list_filter = ('violation__operator', 'violation__contract', 'violation__resource_name', 'violation__media', 'violation__country')
admin.site.register(models.Confirmation, ConfirmationAdmin)
class FeaturedCaseAdmin(admin.ModelAdmin):
......
Markdown is supported
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