Models
hypha.apply.categories.models
¶
Option
¶
Category
¶
Bases: ClusterableModel
Used to manage the global select questions used in most of the application form Also used in the front end by editors when writing about projects.
When used in a form: name -> field label and help_text -> help_text
filter_on_dashboard
class-attribute
instance-attribute
¶
filter_on_dashboard = BooleanField(default=False, help_text=gettext_lazy('Make available to filter on dashboard'))
panels
class-attribute
instance-attribute
¶
panels = [FieldPanel('name'), FieldPanel('filter_on_dashboard'), FieldPanel('help_text'), InlinePanel('options', label=gettext_lazy('Options'))]
MetaTerm
¶
Bases: Indexed
, MP_Node
Hierarchal "Meta" terms
name
class-attribute
instance-attribute
¶
name = CharField(max_length=50, unique=True, help_text=gettext_lazy('Keep the name short, ideally one word.'))
is_archived
class-attribute
instance-attribute
¶
is_archived = BooleanField(default=False, verbose_name=gettext_lazy('Archived'), help_text=gettext_lazy('Archived terms can be viewed but not set on content.'))
filter_on_dashboard
class-attribute
instance-attribute
¶
filter_on_dashboard = BooleanField(default=True, help_text=gettext_lazy('Make available to filter on dashboard'))
available_to_applicants
class-attribute
instance-attribute
¶
available_to_applicants = BooleanField(default=False, help_text=gettext_lazy('Make available to applicants'))
help_text
class-attribute
instance-attribute
¶
help_text = RichTextField(features=['h2', 'h3', 'bold', 'italic', 'link', 'hr', 'ol', 'ul'], blank=True)
node_order_index
class-attribute
instance-attribute
¶
panels
class-attribute
instance-attribute
¶
panels = [FieldPanel('name'), FieldPanel('parent'), MultiFieldPanel([FieldPanel('is_archived'), FieldPanel('filter_on_dashboard'), FieldPanel('available_to_applicants'), FieldPanel('help_text')], heading=gettext_lazy('Options'))]
Meta
¶
get_as_listing_header
¶
Source code in hypha/apply/categories/models.py
get_parent
¶
delete
¶
get_root_descendants
classmethod
¶
MetaTermChoiceField
¶
MetaTermForm
¶
Bases: WagtailAdminModelForm
Source code in hypha/apply/categories/models.py
parent
class-attribute
instance-attribute
¶
parent = MetaTermChoiceField(required=True, queryset=all(), empty_label=None)