You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding an option in custom fields to restrict the custom field visibility based on the model fields equality a specific value.
class CustomField(models.Model):
restrict= models.CharField(
default=None,
choices= "custom choice set showing fields available for filtering"
help_text='Model field used to restrict visibility of this custom field.'
)
restrict_value= models.CharField(
blank=True,
help_text='Value to match when restrict field is set'
)
restrict_negate= models.BooleanField(
blank=True,
help_text='Negates restriction match'
)
when creating a custom field you have the option to select a field and a value to match.
This field and value will decide if the custom field is visible or not.
Use Case
Create a role for a virtual machine called "app server"
Create a custom field you only want visible on virtual machine with the "app server" role
Create a role for a virtual machine called "database server"
Create a custom field you only want visible on virtual machine with the "database server" role
Environment
Proposed Functionality
Adding an option in custom fields to restrict the custom field visibility based on the model fields equality a specific value.
when creating a custom field you have the option to select a field and a value to match.
This field and value will decide if the custom field is visible or not.
Use Case
Create a role for a virtual machine called "app server"
Create a custom field you only want visible on virtual machine with the "app server" role
Create a role for a virtual machine called "database server"
Create a custom field you only want visible on virtual machine with the "database server" role
Create a device with type "Cisco Router"
Create a custom field on device
OR
Other considerations:
Database Changes
New fields on CustomField
External Dependencies
None
The text was updated successfully, but these errors were encountered: