AKDashboard.models module
- class AKDashboard.models.DashboardButton(*args, **kwargs)[source]
Bases:
Model
Database table:
AKDashboard_dashboardbutton
Model for a single dashboard button
Allows to specify * a text (currently without possibility to translate), * a color (based on predefined design colors) * a url the button should point to (internal or external) * an icon (from the collection of fontawesome)
Each button is associated with a single event and will be deleted when the event is deleted.
- Parameters:
id (AutoField) – Primary key: ID
text (CharField) – Text. Text that will be shown on the button
url (URLField) – Link URL. URL this button links to
icon (IconField) – Icon. Symbol represeting this button.
color (PositiveSmallIntegerField) – Button Style. Style (Color) of this button (bootstrap class)
Relationship fields:
- Parameters:
event (
ForeignKey
toEvent
) – Event. Event this button belongs to (related name:dashboardbutton
)