mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Introduce UserConfigForm for managing user preferences
This commit is contained in:
@ -282,7 +282,7 @@ def flatten_dict(d, prefix='', separator='.'):
|
||||
for k, v in d.items():
|
||||
key = separator.join([prefix, k]) if prefix else k
|
||||
if type(v) is dict:
|
||||
ret.update(flatten_dict(v, prefix=key))
|
||||
ret.update(flatten_dict(v, prefix=key, separator=separator))
|
||||
else:
|
||||
ret[key] = v
|
||||
return ret
|
||||
|
Reference in New Issue
Block a user