cleanup settings

This commit is contained in:
j 2011-08-25 18:12:36 +02:00
parent 57b00a0bd4
commit e7a0195b9d

View file

@ -459,6 +459,9 @@ def setUI(request):
if key not in p: if key not in p:
p[key] = {} p[key] = {}
p = p[key] p = p[key]
if value == None:
del p[keys[0]]
else:
p[keys[0]] = value p[keys[0]] = value
profile.save() profile.save()