From 59efba91790e7bbd43ecaa929fcf929b601e8caf Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Tue, 4 Dec 2018 13:32:11 +0100 Subject: [PATCH] Filter content block by user created attribute --- server/books/admin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/books/admin.py b/server/books/admin.py index 194e4782..ee60f6d6 100644 --- a/server/books/admin.py +++ b/server/books/admin.py @@ -29,6 +29,6 @@ class ChapterAdmin(admin.ModelAdmin): @admin.register(ContentBlock) -class ChapterAdmin(admin.ModelAdmin): +class ContentBlockAdmin(admin.ModelAdmin): list_display = ('title', 'slug') - list_filter = (wagtail_parent_filter(Chapter, ContentBlock),) + list_filter = (wagtail_parent_filter(Chapter, ContentBlock), 'user_created',)