App¶
Qualified name: intranet.apps.cslapps.models.App
- class intranet.apps.cslapps.models.App(*args, **kwargs)[source]¶
Bases:
Model
Represents an app maintained by TJ CSL.
- Parameters:
id (AutoField) – Primary key: ID
name (CharField) – Name
description (CharField) – Description
order (IntegerField) – Order
auth_url (URLField) – Auth url
url (URLField) – Url
image_url (CharField) – Image url
html_icon (CharField) – Html icon
invert_image_color_for_dark_mode (BooleanField) – Invert image color for dark mode
Relationship fields:
- Parameters:
oauth_application (
ForeignKey
toCSLApplication
) – Oauth application (related name:app
)groups_visible (
ManyToManyField
toGroup
) – Groups visible (related name:app
)
Methods
visible_to
Attributes
auth_url
Type:
URLField
description
Type:
CharField
groups_visible
Type:
ManyToManyField
toGroup
html_icon
Type:
CharField
id
Type:
AutoField
image_url
Type:
CharField
invert_image_color_for_dark_mode
Type:
BooleanField
name
Type:
CharField
oauth_application
Type:
ForeignKey
toCSLApplication
oauth_application_id
Internal field, use
oauth_application
instead.objects
order
Type:
IntegerField
url
Type:
URLField