Page¶
Qualified name: intranet.apps.signage.models.Page
- class intranet.apps.signage.models.Page(*args, **kwargs)[source]¶
Bases:
Model
iframe: 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
ForeignKey
fromSign
) – All locked signs of this page (related name oflock_page
)default_signs (Reverse
ForeignKey
fromSign
) – All default signs of this page (related name ofdefault_page
)custom_page_signs (Reverse
ForeignKey
fromSign
) – All custom page signs of this page (related name ofcustom_switch_page
)signs (Reverse
ManyToManyField
fromSign
) – All signs of this page (related name ofpages
)
Methods
Deploys page to listed display (specify with display).
Attributes
button
Type:
CharField
custom_page_signs
Type: Reverse
ForeignKey
fromSign
default_signs
Type: Reverse
ForeignKey
fromSign
function
Type:
CharField
id
Type:
AutoField
iframe
Type:
BooleanField
locked_signs
Type: Reverse
ForeignKey
fromSign
name
Type:
CharField
objects
order
Type:
IntegerField
sandbox
Type:
BooleanField
signs
Type: Reverse
ManyToManyField
fromSign
strip_links
Type:
BooleanField
template
Type:
CharField
url
Type:
URLField