Commit 641b62b5 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch '767-broken-admin' into 'master'

Fix #767: broken Activity and Actor modules in django admin

See merge request !684
parents a75d7e95 124a7c3d
......@@ -33,8 +33,8 @@ class DomainAdmin(admin.ModelAdmin):
@admin.register(models.Activity)
class ActivityAdmin(admin.ModelAdmin):
list_display = ["type", "fid", "url", "actor", "creation_date"]
search_fields = ["payload", "fid", "url", "actor__domain"]
list_filter = ["type", "actor__domain"]
search_fields = ["payload", "fid", "url", "actor__domain__name"]
list_filter = ["type", "actor__domain__name"]
actions = [redeliver_activities]
list_select_related = True
......@@ -49,7 +49,7 @@ class ActorAdmin(admin.ModelAdmin):
"creation_date",
"last_fetch_date",
]
search_fields = ["fid", "domain", "preferred_username"]
search_fields = ["fid", "domain__name", "preferred_username"]
list_filter = ["type"]
......
Fixed broken Activity and Actor modules in django admin (#767)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment