profile needed without data

This commit is contained in:
j 2011-02-22 11:44:17 +01:00
parent b3720e41c5
commit 34844d0785

View file

@ -434,10 +434,10 @@ def setUI(request):
'''
data = json.loads(request.POST['data'])
if request.user.is_authenticated():
profile = request.user.get_profile()
for key in data:
keys = key.split('|')
value = data[key]
profile = request.user.get_profile()
p = profile.ui
while len(keys)>1:
key = keys.pop(0)