Scaffold containerized Django/Wagtail app with core features
This commit is contained in:
13
apps/blog/wagtail_hooks.py
Normal file
13
apps/blog/wagtail_hooks.py
Normal file
@@ -0,0 +1,13 @@
|
||||
from wagtail.snippets.models import register_snippet
|
||||
from wagtail.snippets.views.snippets import SnippetViewSet
|
||||
|
||||
from apps.blog.models import TagMetadata
|
||||
|
||||
|
||||
class TagMetadataViewSet(SnippetViewSet):
|
||||
model = TagMetadata
|
||||
icon = "tag"
|
||||
list_display = ["tag", "colour"]
|
||||
|
||||
|
||||
register_snippet(TagMetadataViewSet)
|
||||
Reference in New Issue
Block a user