Added name kwarg to Column(Enum(...)) in OAuth models
This commit is contained in:
parent
0e21b2342f
commit
6b8c66d44c
@ -51,7 +51,8 @@ class OAuthClient(Base):
|
|||||||
|
|
||||||
type = Column(Enum(
|
type = Column(Enum(
|
||||||
u'confidential',
|
u'confidential',
|
||||||
u'public'))
|
u'public',
|
||||||
|
name=u'oauth__client_type'))
|
||||||
|
|
||||||
def generate_identifier(self):
|
def generate_identifier(self):
|
||||||
self.identifier = unicode(uuid.uuid4())
|
self.identifier = unicode(uuid.uuid4())
|
||||||
@ -82,7 +83,8 @@ class OAuthUserClient(Base):
|
|||||||
|
|
||||||
state = Column(Enum(
|
state = Column(Enum(
|
||||||
u'approved',
|
u'approved',
|
||||||
u'rejected'))
|
u'rejected',
|
||||||
|
name=u'oauth__relation_state'))
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<{0} #{1} {2} [{3}, {4}]>'.format(
|
return '<{0} #{1} {2} [{3}, {4}]>'.format(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user