Skip to content
Snippets Groups Projects
Verified Commit fbb814bc authored by Eliot Berriot's avatar Eliot Berriot
Browse files

See #890: added django admin module for reports

parent 6ba0d6d8
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,28 @@ class InstancePolicyAdmin(admin.ModelAdmin): ...@@ -30,6 +30,28 @@ class InstancePolicyAdmin(admin.ModelAdmin):
list_select_related = True list_select_related = True
@admin.register(models.Report)
class ReportAdmin(admin.ModelAdmin):
list_display = [
"uuid",
"submitter",
"type",
"assigned_to",
"is_handled",
"creation_date",
"handled_date",
]
list_filter = [
"type",
"is_handled",
]
search_fields = [
"summary",
]
list_select_related = True
@admin.register(models.UserFilter) @admin.register(models.UserFilter)
class UserFilterAdmin(admin.ModelAdmin): class UserFilterAdmin(admin.ModelAdmin):
list_display = ["uuid", "user", "target_artist", "creation_date"] list_display = ["uuid", "user", "target_artist", "creation_date"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment