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

Add tests & cleanup

This commit is contained in:
jeremystretch
2021-12-22 09:51:31 -05:00
parent 7926225e9b
commit 01997efcbe
3 changed files with 42 additions and 3 deletions

View File

@@ -1,5 +1,7 @@
class UserPreference:
"""
Represents a configurable user preference.
"""
def __init__(self, label, choices, default=None, description='', coerce=lambda x: x):
self.label = label
self.choices = choices