mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 15:19:15 +02:00
See #890: added django admin module for reports
This commit is contained in:
parent
6ba0d6d8d9
commit
fbb814bca8
1 changed files with 22 additions and 0 deletions
|
@ -30,6 +30,28 @@ class InstancePolicyAdmin(admin.ModelAdmin):
|
|||
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)
|
||||
class UserFilterAdmin(admin.ModelAdmin):
|
||||
list_display = ["uuid", "user", "target_artist", "creation_date"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue