Skip to content

Models

hypha.apply.utils.models

PDFPageSettings

Bases: BaseSiteSetting

A4 class-attribute instance-attribute

A4 = 'A4'

LEGAL class-attribute instance-attribute

LEGAL = 'legal'

LETTER class-attribute instance-attribute

LETTER = 'letter'

PAGE_SIZES class-attribute instance-attribute

PAGE_SIZES = [(A4, 'A4'), (LEGAL, 'Legal'), (LETTER, 'Letter')]

download_page_size class-attribute instance-attribute

download_page_size = CharField(choices=PAGE_SIZES, default=LEGAL, max_length=6, help_text=gettext_lazy('Page size of downloadable Project and Submission PDFs'))

panels class-attribute instance-attribute

panels = [FieldPanel('download_page_size')]

Meta

verbose_name class-attribute instance-attribute
verbose_name = 'pdf settings'