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

Enable plugins to define user preferences

This commit is contained in:
jeremystretch
2021-12-22 09:10:50 -05:00
parent 1eeac7f4f4
commit 1aafcf241f
8 changed files with 119 additions and 65 deletions

View File

@ -0,0 +1,20 @@
from users.preferences import UserPreference
preferences = {
'pref1': UserPreference(
label='First preference',
choices=(
('foo', 'Foo'),
('bar', 'Bar'),
)
),
'pref2': UserPreference(
label='Second preference',
choices=(
('a', 'A'),
('b', 'B'),
('c', 'C'),
)
),
}