1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Flag HTMX navigation as an experimental feature

This commit is contained in:
Jeremy Stretch
2024-04-23 10:38:49 -04:00
parent c32dff5649
commit e05ca710ae
4 changed files with 44 additions and 29 deletions

View File

@ -2,9 +2,10 @@ class UserPreference:
"""
Represents a configurable user preference.
"""
def __init__(self, label, choices, default=None, description='', coerce=lambda x: x):
def __init__(self, label, choices, default=None, description='', coerce=lambda x: x, experimental=False):
self.label = label
self.choices = choices
self.default = default if default is not None else choices[0]
self.description = description
self.coerce = coerce
self.experimental = experimental