1
# Copyright 2009-2011 Canonical Ltd. All rights reserved.
3
# This program is free software: you can redistribute it and/or modify
4
# it under the terms of the GNU Affero General Public License as published by
5
# the Free Software Foundation, either version 3 of the License, or
6
# (at your option) any later version.
8
# This program is distributed in the hope that it will be useful,
9
# but WITHOUT ANY WARRANTY; without even the implied warranty of
10
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
# GNU Affero General Public License for more details.
13
# You should have received a copy of the GNU Affero General Public License
14
# along with this program. If not, see <http://www.gnu.org/licenses/>.
16
from django.contrib import admin
18
from oopstools.oops.models import Infestation, Oops, Prefix, Report
21
class OopsAdmin(admin.ModelAdmin):
22
list_display = ('oopsid', 'oopsinfestation')
25
class InfestationAdmin(admin.ModelAdmin):
27
'bug', 'exception_type', 'exception_value')
30
class ReportAdmin(admin.ModelAdmin):
32
'name', 'title', 'summary', 'active')
33
filter_horizontal = ('prefixes',)
36
class PrefixAdmin(admin.ModelAdmin):
37
list_display = ('value', 'appinstance')
40
admin.site.register(Oops)
41
admin.site.register(Infestation, InfestationAdmin)
42
admin.site.register(Report, ReportAdmin)
43
admin.site.register(Prefix, PrefixAdmin)