This commit is contained in:
j 2011-10-03 21:22:13 +02:00
parent bf3584bcf9
commit 479182bc47

View file

@ -325,7 +325,7 @@ def editUser(request):
} }
''' '''
response = json_response() response = json_response()
data = json.load(request.POST['data']) data = json.loads(request.POST['data'])
user = get_object_or_404_json(models.User, username=data['id']) user = get_object_or_404_json(models.User, username=data['id'])
profile = user.get_profile() profile = user.get_profile()
if 'email' in data: if 'email' in data: