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

Merge branch 'follower-admin' into 'master'

feature: FollowerAdmin

See merge request !187
parents 62e903e6 e870168f
No related branches found
No related tags found
No related merge requests found
from django.contrib import admin
from guardian.admin import GuardedModelAdmin
from django.contrib.auth.admin import UserAdmin
from djangoldp.models import Activity, ScheduledActivity
from djangoldp.models import Activity, ScheduledActivity, Follower
class DjangoLDPAdmin(GuardedModelAdmin):
......@@ -48,5 +48,12 @@ class ActivityAdmin(DjangoLDPAdmin):
return str(obj.response_to_json())
class FollowerAdmin(DjangoLDPAdmin):
fields = ['urlid', 'object', 'inbox', 'follower']
list_display = ['urlid', 'object', 'inbox', 'follower']
search_fields = ['object', 'inbox', 'follower']
admin.site.register(Activity, ActivityAdmin)
admin.site.register(ScheduledActivity, ActivityAdmin)
admin.site.register(Follower, FollowerAdmin)
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