fsdfs
This commit is contained in:
parent
54f0df5e6f
commit
66b302a86d
11 changed files with 53 additions and 53 deletions
|
@ -17,7 +17,7 @@ class OauthApp(Base):
|
|||
redirect_uri = Column(String(4096))
|
||||
description = Column(String(256))
|
||||
author_id = Column(Integer, ForeignKey("users.id"))
|
||||
author = relationship("User")
|
||||
author = relationship("User", viewonly=True)
|
||||
|
||||
def __repr__(self): return f"<OauthApp(id={self.id})>"
|
||||
|
||||
|
@ -68,8 +68,8 @@ class ClientAuth(Base):
|
|||
oauth_client = Column(Integer, ForeignKey("oauth_apps.id"))
|
||||
access_token = Column(String(128))
|
||||
user_id = Column(Integer, ForeignKey("users.id"))
|
||||
user = relationship("User")
|
||||
application = relationship("OauthApp")
|
||||
user = relationship("User", viewonly=True)
|
||||
application = relationship("OauthApp", viewonly=True)
|
||||
|
||||
@property
|
||||
@lazy
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue