Commit 445775d7 authored by Okhin's avatar Okhin

Adding the old column to the admin interface

parent 868f805e
...@@ -6,8 +6,8 @@ class CommentInline(admin.TabularInline): ...@@ -6,8 +6,8 @@ class CommentInline(admin.TabularInline):
max_num = 1 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', 'old')
list_filter = ('state', 'operator_ref', 'contract', 'resource_name', 'media', 'country') list_filter = ('state', 'operator_ref', 'contract', 'resource_name', 'media', 'country', 'old')
inlines = [CommentInline, ] inlines = [CommentInline, ]
admin.site.register(models.Violation, ViolationAdmin) admin.site.register(models.Violation, ViolationAdmin)
...@@ -33,4 +33,4 @@ class OperatorAdmin(admin.ModelAdmin): ...@@ -33,4 +33,4 @@ class OperatorAdmin(admin.ModelAdmin):
list_display = ("__unicode__", "reported_violations") list_display = ("__unicode__", "reported_violations")
search_fields = ('name', ) search_fields = ('name', )
pass pass
admin.site.register(models.Operator, OperatorAdmin) admin.site.register(models.Operator, OperatorAdmin)
\ No newline at end of file
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