Remove backref to owner since it seems to be unused, but it crashed attempts to remove items which have been removed from static data

This commit is contained in:
DarkPhoenix
2021-03-25 15:13:18 +03:00
parent 1c415fbe06
commit 8ee900a90e

View File

@@ -191,7 +191,6 @@ mapper(es_Fit, fits_table,
Booster,
collection_class=HandledBoosterList,
cascade='all, delete, delete-orphan',
backref='owner',
single_parent=True),
"_Fit__drones": relation(
Drone,
@@ -227,7 +226,6 @@ mapper(es_Fit, fits_table,
Implant,
collection_class=HandledImplantList,
cascade='all, delete, delete-orphan',
backref='owner',
single_parent=True,
primaryjoin=fitImplants_table.c.fitID == fits_table.c.ID,
secondaryjoin=fitImplants_table.c.implantID == Implant.ID,