See #890: added django admin module for reports

environments/review-docs-rate-jr6phc/deployments/2479
Eliot Berriot 2019-08-28 11:32:08 +02:00
rodzic 6ba0d6d8d9
commit fbb814bca8
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
1 zmienionych plików z 22 dodań i 0 usunięć

Wyświetl plik

@ -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"]