fix users dialog

This commit is contained in:
j 2012-03-20 20:34:26 +01:00
parent 4651349381
commit 8a7dbf46ca

View file

@ -166,7 +166,7 @@ class SessionData(models.Model):
j['level'] = p.get_level() j['level'] = p.get_level()
j['newsletter'] = p.newsletter j['newsletter'] = p.newsletter
j['notes'] = p.notes j['notes'] = p.notes
j['numberoflists'] = p.numberoflists j['numberoflists'] = self.numberoflists
if keys: if keys:
for key in j.keys(): for key in j.keys():
if key not in keys: if key not in keys:
@ -297,7 +297,7 @@ def user_json(user, keys=None):
'level': p.get_level(), 'level': p.get_level(),
'newsletter': p.newsletter, 'newsletter': p.newsletter,
'notes': p.notes, 'notes': p.notes,
'numberoflists': p.numberoflists, 'numberoflists': user.lists.count(),
'username': user.username, 'username': user.username,
} }
if keys: if keys: