Skip to content

sub_heading_block

django_spire.knowledge.entry.version.block.blocks.sub_heading_block

SubHeadingBlock

Bases: BaseBlock

value instance-attribute

type = BlockTypeChoices.SUB_HEADING class-attribute instance-attribute

detail_template = 'django_spire/knowledge/entry/version/block/detail/component/sub_heading_component.html' class-attribute instance-attribute

update_template = 'django_spire/knowledge/entry/version/block/update/component/sub_heading_component.html' class-attribute instance-attribute

render_to_text

Source code in django_spire/knowledge/entry/version/block/blocks/sub_heading_block.py
def render_to_text(self) -> str:
    return f'{self.value}\n'