We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ed5ae4 commit d6423faCopy full SHA for d6423fa
fluent_faq/pagetypes/faqpage/admin.py
@@ -0,0 +1,10 @@
1
+from django.contrib import admin
2
+from fluent_pages.adminui import HtmlPageAdmin
3
+
4
+from .models import FaqPage
5
6
7
+@admin.register(FaqPage)
8
+class FaqPageAdmin(HtmlPageAdmin):
9
+ pass
10
fluent_faq/pagetypes/faqpage/page_type_plugins.py
@@ -1,5 +1,5 @@
-from fluent_pages.adminui import HtmlPageAdmin
from fluent_pages.extensions import page_type_pool, PageTypePlugin
+from .admin import FaqPageAdmin
from .models import FaqPage
@@ -9,5 +9,5 @@ class FaqPagePlugin(PageTypePlugin):
Plugin binding the FaqPage model as pagetype.
"""
11
model = FaqPage
12
- model_admin = HtmlPageAdmin
+ model_admin = FaqPageAdmin
13
urls = 'fluent_faq.urls'
0 commit comments