diff --git a/manila/db/sqlalchemy/models.py b/manila/db/sqlalchemy/models.py index b6e12827b9..d3f28382b3 100644 --- a/manila/db/sqlalchemy/models.py +++ b/manila/db/sqlalchemy/models.py @@ -1085,10 +1085,10 @@ class ShareGroup(BASE, ManilaBase): ShareGroupTypes, backref="share_groups", foreign_keys=share_group_type_id, - primaryjoin='and_(' - 'ShareGroup.share_group_type_id == ' - 'ShareGroupTypes.id,' - 'ShareGroup.deleted == 0)') + primaryjoin="and_(" + "ShareGroup.share_group_type_id ==" + "ShareGroupTypes.id," + "ShareGroup.deleted == 'False')") _availability_zone = orm.relationship( "AvailabilityZone", lazy='immediate',