Make Encounter.condition_values a relationship().

This commit is contained in:
Andrew Ekstedt 2011-11-20 21:11:15 -08:00
parent 442ba27943
commit c5fee20ef1

View file

@ -2234,9 +2234,9 @@ ContestCombo.second = relationship(Move,
innerjoin=True, lazy='joined', innerjoin=True, lazy='joined',
backref='contest_combo_second') backref='contest_combo_second')
Encounter.condition_value_map = relationship(EncounterConditionValueMap,
backref='encounter') Encounter.condition_values = relationship(EncounterConditionValue,
Encounter.condition_values = association_proxy('condition_value_map', 'condition_value') secondary=EncounterConditionValueMap.__table__)
Encounter.location_area = relationship(LocationArea, Encounter.location_area = relationship(LocationArea,
innerjoin=True, lazy='joined', innerjoin=True, lazy='joined',
backref='encounters') backref='encounters')
@ -2253,9 +2253,6 @@ Encounter.slot = relationship(EncounterSlot,
EncounterConditionValue.condition = relationship(EncounterCondition, EncounterConditionValue.condition = relationship(EncounterCondition,
innerjoin=True, lazy='joined', innerjoin=True, lazy='joined',
backref='values') backref='values')
EncounterConditionValueMap.condition_value = relationship(EncounterConditionValue,
innerjoin=True, lazy='joined',
backref='encounter_map')
EncounterSlot.method = relationship(EncounterMethod, EncounterSlot.method = relationship(EncounterMethod,
innerjoin=True, lazy='joined', innerjoin=True, lazy='joined',