Fix relationships for sso / characters

This commit is contained in:
Ryan Holmes
2018-03-15 02:58:58 -04:00
parent 4c6f68b07e
commit b74654a5b3

View File

@@ -62,15 +62,7 @@ sso_character_map_table = Table("ssoCharacterMap", saveddata_meta,
)
mapper(SsoCharacter, sso_table,
properties={
"_SsoCharacter__maps": relation(
Character,
cascade="all",
secondary=sso_character_map_table
),
}
)
mapper(SsoCharacter, sso_table)
mapper(Character, characters_table,
properties={
@@ -96,7 +88,7 @@ mapper(Character, characters_table,
"_Character__ssoCharacters" : relation(
SsoCharacter,
collection_class=HandledSsoCharacterList,
cascade='all',
backref='characters',
secondary=sso_character_map_table)
}
)