Slight bracket adjustment

This commit is contained in:
Dannon Baker
2015-07-23 11:30:35 -04:00
parent b22e1d1329
commit ef520569d5
+3 -2
View File
@@ -1755,13 +1755,14 @@ mapper( model.Role, model.Role.table, properties=dict(
mapper( model.UserRoleAssociation, model.UserRoleAssociation.table, properties=dict(
user=relation( model.User, backref="roles" ),
non_private_roles=relation( model.User,
non_private_roles=relation(
model.User,
backref="non_private_roles",
primaryjoin=(
( model.User.table.c.id == model.UserRoleAssociation.table.c.user_id ) &
( model.UserRoleAssociation.table.c.role_id == model.Role.table.c.id ) &
not_( model.Role.table.c.name == model.User.table.c.email ) )
),
),
role=relation( model.Role )
) )