From 8a7dbf46ca5619586295a4e06b8310068baf00be Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 20 Mar 2012 20:34:26 +0100 Subject: [PATCH] fix users dialog --- pandora/user/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/user/models.py b/pandora/user/models.py index 533657268..42d92f890 100644 --- a/pandora/user/models.py +++ b/pandora/user/models.py @@ -166,7 +166,7 @@ class SessionData(models.Model): j['level'] = p.get_level() j['newsletter'] = p.newsletter j['notes'] = p.notes - j['numberoflists'] = p.numberoflists + j['numberoflists'] = self.numberoflists if keys: for key in j.keys(): if key not in keys: @@ -297,7 +297,7 @@ def user_json(user, keys=None): 'level': p.get_level(), 'newsletter': p.newsletter, 'notes': p.notes, - 'numberoflists': p.numberoflists, + 'numberoflists': user.lists.count(), 'username': user.username, } if keys: