fix list repr
This commit is contained in:
parent
f69377408d
commit
e55df181db
1 changed files with 2 additions and 2 deletions
|
@ -57,7 +57,7 @@ class User(db.Model):
|
||||||
def name(self):
|
def name(self):
|
||||||
name = self.nickname if self.id != settings.USER_ID else ''
|
name = self.nickname if self.id != settings.USER_ID else ''
|
||||||
return name
|
return name
|
||||||
|
|
||||||
def json(self):
|
def json(self):
|
||||||
j = {}
|
j = {}
|
||||||
if self.info:
|
if self.info:
|
||||||
|
@ -263,7 +263,7 @@ class List(db.Model):
|
||||||
return id
|
return id
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self.public_id.encode('utf-8')
|
return self.public_id
|
||||||
|
|
||||||
def items_count(self):
|
def items_count(self):
|
||||||
key = 'list:' + self.public_id
|
key = 'list:' + self.public_id
|
||||||
|
|
Loading…
Add table
Reference in a new issue