Skip to content

Commit

Permalink
bug 1493768: add BugAssociationAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
willkg committed Oct 12, 2018
1 parent 2654604 commit 96cf15e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -103,7 +103,7 @@ testshell: my.env .docker-build

.PHONY: run
run: my.env
${DC} up processor webapp webpack oidcprovider
${DC} up processor webapp webpack

.PHONY: stop
stop: my.env
Expand Down
15 changes: 14 additions & 1 deletion webapp-django/crashstats/crashstats/admin.py
Expand Up @@ -3,6 +3,7 @@
from django.contrib.admin.models import LogEntry, ADDITION, CHANGE, DELETION

from crashstats.crashstats.models import (
BugAssociation,
GraphicsDevice,
Signature,
)
Expand Down Expand Up @@ -66,6 +67,18 @@ def has_module_permission(self, request):
return True


@admin.register(BugAssociation)
class BugAssociationAdmin(admin.ModelAdmin):
list_display = [
'bug_id',
'signature'
]
search_fields = [
'bug_id',
'signature'
]


@admin.register(GraphicsDevice)
class GraphicsDeviceAdmin(admin.ModelAdmin):
list_display = [
Expand All @@ -84,7 +97,7 @@ class GraphicsDeviceAdmin(admin.ModelAdmin):


@admin.register(Signature)
class Signature(admin.ModelAdmin):
class SignatureAdmin(admin.ModelAdmin):
list_display = [
'signature',
'first_build',
Expand Down

0 comments on commit 96cf15e

Please sign in to comment.