forked from 0x2620/pandora
fix users dialog
This commit is contained in:
parent
4651349381
commit
8a7dbf46ca
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue