From c2230958780913c65f8a52508f319944d9a627d1 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Feb 2011 11:44:17 +0100 Subject: [PATCH] profile needed without data --- pandora/user/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/user/views.py b/pandora/user/views.py index be69622a..e78c1d7b 100644 --- a/pandora/user/views.py +++ b/pandora/user/views.py @@ -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)