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