Merge "Add uselist=True to subnet rbac_entries relationship" into stable/mitaka

This commit is contained in:
Jenkins 2016-04-11 15:51:08 +00:00 committed by Gerrit Code Review
commit b86048b2ac
1 changed files with 1 additions and 1 deletions

View File

@ -220,7 +220,7 @@ class Subnet(model_base.HasStandardAttributes, model_base.BASEV2,
# subnets don't have their own rbac_entries, they just inherit from
# the network rbac entries
rbac_entries = orm.relationship(
rbac_db_models.NetworkRBAC, lazy='joined',
rbac_db_models.NetworkRBAC, lazy='joined', uselist=True,
foreign_keys='Subnet.network_id',
primaryjoin='Subnet.network_id==NetworkRBAC.object_id')