Page¶
Qualified name: intranet.apps.signage.models.Page
- class intranet.apps.signage.models.Page(*args, **kwargs)[source]¶
Bases:
Modeliframe: True if page is just an iframe url: url for iframe (if iframe is True) sandbox: whether the iframe should be sandboxed
template: the path to the template (for server side rendering) button: the name of the fontawesome icon (ex: “fa-chrome”) order: index at which button should be placed
strip_links: whether we strip the links in the iframe (to prevent navigation away)
signs: set of signs which display this Page
- Parameters:
id (AutoField) – Primary key: ID
name (CharField) – Name
iframe (BooleanField) – Iframe
url (URLField) – Url
sandbox (BooleanField) – Sandbox
template (CharField) – Template
function (CharField) – Function
button (CharField) – Button
order (IntegerField) – Order
strip_links (BooleanField) – Strip links
Reverse relationships:
- Parameters:
locked_signs (Reverse
ForeignKeyfromSign) – All locked signs of this page (related name oflock_page)default_signs (Reverse
ForeignKeyfromSign) – All default signs of this page (related name ofdefault_page)custom_page_signs (Reverse
ForeignKeyfromSign) – All custom page signs of this page (related name ofcustom_switch_page)signs (Reverse
ManyToManyFieldfromSign) – All signs of this page (related name ofpages)
Methods
Deploys page to listed display (specify with display).
Attributes
buttonType:
CharFieldcustom_page_signsType: Reverse
ForeignKeyfromSigndefault_signsType: Reverse
ForeignKeyfromSignfunctionType:
CharFieldidType:
AutoFieldiframeType:
BooleanFieldlocked_signsType: Reverse
ForeignKeyfromSignnameType:
CharFieldobjectsorderType:
IntegerFieldsandboxType:
BooleanFieldsignsType: Reverse
ManyToManyFieldfromSignstrip_linksType:
BooleanFieldtemplateType:
CharFieldurlType:
URLField