index prefix column

This commit is contained in:
Min RK
2017-07-24 17:27:19 +02:00
parent 2654794968
commit 639ccf5582

View File

@@ -427,7 +427,7 @@ class OAuthAccessToken(Hashed, Base):
# from Hashed # from Hashed
hashed = Column(Unicode(64)) hashed = Column(Unicode(64))
prefix = Column(Unicode(16)) prefix = Column(Unicode(16), index=True)
def __repr__(self): def __repr__(self):
return "<{cls}('{prefix}...', user='{user}'>".format( return "<{cls}('{prefix}...', user='{user}'>".format(