Models
    
    
    
              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
class-attribute
      instance-attribute
  
¶
filter_on_dashboard = BooleanField(default=False, help_text=gettext_lazy('Make available to filter on dashboard'))
class-attribute
      instance-attribute
  
¶
panels = [FieldPanel('name'), FieldPanel('filter_on_dashboard'), FieldPanel('help_text'), InlinePanel('options', label=gettext_lazy('Options'))]
    
              Bases: Indexed, MP_Node
Hierarchal "Meta" terms
class-attribute
      instance-attribute
  
¶
name = CharField(max_length=50, unique=True, help_text=gettext_lazy('Keep the name short, ideally one word.'))
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.'))
class-attribute
      instance-attribute
  
¶
filter_on_dashboard = BooleanField(default=True, help_text=gettext_lazy('Make available to filter on dashboard'))
class-attribute
      instance-attribute
  
¶
available_to_applicants = BooleanField(default=False, help_text=gettext_lazy('Make available to applicants'))
class-attribute
      instance-attribute
  
¶
help_text = RichTextField(features=['h2', 'h3', 'bold', 'italic', 'link', 'hr', 'ol', 'ul'], blank=True)
class-attribute
      instance-attribute
  
¶
    
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'))]
    
    Source code in hypha/apply/categories/models.py
              
    
    
classmethod
  
¶
    
    
    
              Bases: WagtailAdminModelForm
Source code in hypha/apply/categories/models.py
                    
class-attribute
      instance-attribute
  
¶
parent = MetaTermChoiceField(required=True, queryset=all(), empty_label=None)