fds
This commit is contained in:
parent
9ef7da1f59
commit
20cf78883d
5 changed files with 27 additions and 20 deletions
|
@ -324,6 +324,11 @@ class User(Base):
|
|||
def url(self):
|
||||
return f"/@{self.username}"
|
||||
|
||||
@property
|
||||
@lazy
|
||||
def url2(self):
|
||||
return f"/id/{self.id}"
|
||||
|
||||
def __repr__(self):
|
||||
return f"<User(username={self.username})>"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue