1
0
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:
jeremystretch
2021-12-21 16:29:01 -05:00
parent 5e32c69e0e
commit 70f257b1ea
8 changed files with 103 additions and 105 deletions

View File

@ -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