See #890: added moderation note model, serializers and views

This commit is contained in:
Eliot Berriot 2019-08-29 11:45:41 +02:00
parent 80c8610632
commit ab3bc96783
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
13 changed files with 193 additions and 9 deletions

View file

@ -30,7 +30,6 @@ class InstancePolicyAdmin(admin.ModelAdmin):
list_select_related = True
@admin.register(models.Report)
class ReportAdmin(admin.ModelAdmin):
list_display = [
@ -42,13 +41,8 @@ class ReportAdmin(admin.ModelAdmin):
"creation_date",
"handled_date",
]
list_filter = [
"type",
"is_handled",
]
search_fields = [
"summary",
]
list_filter = ["type", "is_handled"]
search_fields = ["summary"]
list_select_related = True