Skip to content
Snippets Groups Projects
Commit 1f3b2592 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

Merge branch 'follower-admin' into 'master'

feature: search_fields on ActivityAdmin

See merge request !188
parents 290bc93e ff504e60
No related branches found
Tags v1.3.8
No related merge requests found
......@@ -40,6 +40,7 @@ class ActivityAdmin(DjangoLDPAdmin):
'response_location', 'response_body_view']
list_display = ['created_at', 'type', 'local_id', 'external_id', 'success', 'response_code']
readonly_fields = ['created_at', 'payload_view', 'response_location', 'response_code', 'response_body_view']
search_fields = ['urlid', 'type', 'local_id', 'external_id', 'response_code']
def payload_view(self, obj):
return str(obj.to_activitystream())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment