Blocks
hypha.apply.categories.blocks
¶
ModelChooserBlock
¶
Bases: ChoiceBlock
CategoryQuestionBlock
¶
Bases: OptionalFormFieldBlock
help_link
class-attribute
instance-attribute
¶
required
class-attribute
instance-attribute
¶
category
class-attribute
instance-attribute
¶
category = ModelChooserBlock(required=True, choices=get_categories_as_choices)
multi
class-attribute
instance-attribute
¶
field_label
class-attribute
instance-attribute
¶
field_label = CharBlock(label=gettext_lazy('Label'), required=False, help_text=gettext_lazy('Leave blank to use the default Category label'))
help_text
class-attribute
instance-attribute
¶
help_text = TextBlock(label=gettext_lazy('Help text'), required=False, help_text=gettext_lazy('Leave blank to use the default Category help text'))