Skip to content

External Links


This model enables the end user to define external links to be rendered alongside other models display pages. The values are added to the page context in the Change View.

Bases: TenancyObject

id = models.AutoField(primary_key=True, unique=True, blank=False)

name = models.CharField(blank=False, max_length=30, unique=True, help_text='Name to display on link button', verbose_name='Button Name')

slug = None

template = models.CharField(blank=False, max_length=180, unique=False, help_text='External Link template', verbose_name='Link Template')

colour = models.CharField(blank=True, null=True, default=None, max_length=80, unique=False, help_text='Colour to render the link button. Use HTML colour code', verbose_name='Button Colour')

cluster = models.BooleanField(default=False, blank=False, help_text='Render link for clusters', verbose_name='Clusters')

devices = models.BooleanField(default=False, blank=False, help_text='Render link for devices', verbose_name='Devices')

software = models.BooleanField(default=False, blank=False, help_text='Render link for software', verbose_name='Software')

created = AutoCreatedField()

modified = AutoLastModifiedField()

Meta

Attributes
verbose_name_plural = 'External Links'

__str__()

Return the Template to render

About:

This page forms part of our Project Centurion ERP.

Page Metadata
Version: ToDo: place files short git commit here
Date Created: 2024-07-15
Date Edited: 2024-07-17

Contribution:

Would You like to contribute to our Centurion ERP project? You can assist in the following ways:

 

ToDo: Add the page list of contributors