cleanup settings
This commit is contained in:
parent
6893563eca
commit
96bd8bb43f
1 changed files with 4 additions and 1 deletions
|
@ -459,6 +459,9 @@ def setUI(request):
|
|||
if key not in p:
|
||||
p[key] = {}
|
||||
p = p[key]
|
||||
if value == None:
|
||||
del p[keys[0]]
|
||||
else:
|
||||
p[keys[0]] = value
|
||||
profile.save()
|
||||
|
||||
|
|
Loading…
Reference in a new issue