PEP8 fixes
This commit is contained in:
@@ -99,8 +99,8 @@ class Endpoints(Base, KeystoneBase):
|
|||||||
id = Column(Integer, primary_key=True)
|
id = Column(Integer, primary_key=True)
|
||||||
tenant_id = Column(String(255), ForeignKey('tenants.id'))
|
tenant_id = Column(String(255), ForeignKey('tenants.id'))
|
||||||
endpoint_template_id = Column(Integer, ForeignKey('endpoint_templates.id'))
|
endpoint_template_id = Column(Integer, ForeignKey('endpoint_templates.id'))
|
||||||
__table_args__ = (UniqueConstraint("endpoint_template_id",\
|
__table_args__ = (
|
||||||
"tenant_id"), {})
|
UniqueConstraint("endpoint_template_id", "tenant_id"), {})
|
||||||
|
|
||||||
|
|
||||||
# Define objects
|
# Define objects
|
||||||
@@ -118,8 +118,7 @@ class Tenant(Base, KeystoneBase):
|
|||||||
desc = Column(String(255))
|
desc = Column(String(255))
|
||||||
enabled = Column(Integer)
|
enabled = Column(Integer)
|
||||||
groups = relationship('Group', backref='tenants')
|
groups = relationship('Group', backref='tenants')
|
||||||
endpoints = relationship('Endpoints', backref='tenant',
|
endpoints = relationship('Endpoints', backref='tenant', cascade="all")
|
||||||
cascade="all")
|
|
||||||
|
|
||||||
|
|
||||||
class User(Base, KeystoneBase):
|
class User(Base, KeystoneBase):
|
||||||
|
|||||||
Reference in New Issue
Block a user