Creating a TagsBlock for StreamField
问题 I'm trying to create a struck block, which has a tags field so the user could choose the tags he wants to filter from. I created the tags field using wagtail.admin.widgets import AdminTagWidget . class TagsBlock(FieldBlock): field = forms.CharField( widget=AdminTagWidget ) class RelatedArticlesBlock(StructBlock): title = CharBlock(required=False) filter_tags = TagsBlock() no_of_items = IntegerBlock() It works as expected for selecting tags. But when I save it gives validation errors because