Skip to content

Index

hypha.core.models

SystemSettings

Bases: BaseGenericSetting

site_logo_default class-attribute instance-attribute

site_logo_default = ForeignKey('images.CustomImage', null=True, blank=True, on_delete=SET_NULL, related_name='+', help_text=gettext_lazy('Default site logo'))

site_logo_mobile class-attribute instance-attribute

site_logo_mobile = ForeignKey('images.CustomImage', null=True, blank=True, on_delete=SET_NULL, related_name='+', help_text=gettext_lazy('Mobil site logo (if not set default will be used)'))
site_logo_link = URLField(default='', blank=True, help_text=gettext_lazy('Link for the site logo, e.g. "https://www.example.org/". If not set, defaults to page with slug set to "home".'))

nav_content class-attribute instance-attribute

nav_content = TextField('Front page navigation content', help_text=gettext_lazy('This will overwrite the default front page navigation bar, html tags is allowed.'), blank=True)

footer_content class-attribute instance-attribute

footer_content = TextField('Footer content', default='<p>Configure this text in Wagtail admin -> Settings -> System settings.</p>\n<br>\n<a href="#" onclick="openConsentPrompt()">Cookie Settings</a>', help_text=gettext_lazy('This will be added to the footer, html tags is allowed.'), blank=True)

title_404 class-attribute instance-attribute

title_404 = CharField('Title', max_length=255, default='Page not found')

body_404 class-attribute instance-attribute

body_404 = RichTextField('Text', default='<p>You may be trying to find a page that doesn&rsquo;t exist or has been moved.</p>')

title_403 class-attribute instance-attribute

title_403 = CharField('Title', max_length=255, default='Permission Denied')

body_403 class-attribute instance-attribute

body_403 = RichTextField('Text', default='<p>You might not have access to the requested resource.</p>')

panels class-attribute instance-attribute

panels = [MultiFieldPanel([FieldPanel('site_logo_default'), FieldPanel('site_logo_mobile'), FieldPanel('site_logo_link')], 'Site logo'), FieldPanel('nav_content'), FieldPanel('footer_content'), MultiFieldPanel([FieldPanel('title_404'), FieldPanel('body_404')], '404 page'), MultiFieldPanel([FieldPanel('title_403'), FieldPanel('body_403')], '403 page')]

Meta

verbose_name class-attribute instance-attribute
verbose_name = 'System settings'
db_table class-attribute instance-attribute
db_table = 'system_settings'