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:

Reverse relationships:

Parameters:
  • locked_signs (Reverse ForeignKey from Sign) – All locked signs of this page (related name of lock_page)

  • default_signs (Reverse ForeignKey from Sign) – All default signs of this page (related name of default_page)

  • custom_page_signs (Reverse ForeignKey from Sign) – All custom page signs of this page (related name of custom_switch_page)

  • signs (Reverse ManyToManyField from Sign) – All signs of this page (related name of pages)

Methods

deploy_to

Deploys page to listed display (specify with display).

Attributes

button

Type: CharField

custom_page_signs

Type: Reverse ForeignKey from Sign

default_signs

Type: Reverse ForeignKey from Sign

function

Type: CharField

id

Type: AutoField

iframe

Type: BooleanField

locked_signs

Type: Reverse ForeignKey from Sign

name

Type: CharField

objects

order

Type: IntegerField

sandbox

Type: BooleanField

signs

Type: Reverse ManyToManyField from Sign

strip_links

Type: BooleanField

template

Type: CharField

url

Type: URLField

deploy_to(displays=None, exclude=None, lock=False)[source]

Deploys page to listed display (specify with display). If display is None, deploy to all display. Can specify exclude for which display to exclude. This overwrites the first argument.