kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
See #890: added django admin module for reports
rodzic
6ba0d6d8d9
commit
fbb814bca8
|
@ -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"]
|
||||||
|
|
Ładowanie…
Reference in New Issue