Silence some of SQLAlchemy warnings
This commit is contained in:
@@ -175,12 +175,13 @@ mapper(es_Fit, fits_table,
|
|||||||
collection_class=HandledModuleList,
|
collection_class=HandledModuleList,
|
||||||
primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected == False), # noqa
|
primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected == False), # noqa
|
||||||
order_by=modules_table.c.position,
|
order_by=modules_table.c.position,
|
||||||
|
overlaps='owner',
|
||||||
cascade='all, delete, delete-orphan'),
|
cascade='all, delete, delete-orphan'),
|
||||||
"_Fit__projectedModules": relation(
|
"_Fit__projectedModules": relation(
|
||||||
Module,
|
Module,
|
||||||
collection_class=HandledProjectedModList,
|
collection_class=HandledProjectedModList,
|
||||||
|
overlaps='owner',
|
||||||
cascade='all, delete, delete-orphan',
|
cascade='all, delete, delete-orphan',
|
||||||
single_parent=True,
|
|
||||||
primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected == True)), # noqa
|
primaryjoin=and_(modules_table.c.fitID == fits_table.c.ID, modules_table.c.projected == True)), # noqa
|
||||||
"owner": relation(
|
"owner": relation(
|
||||||
User,
|
User,
|
||||||
@@ -190,37 +191,37 @@ mapper(es_Fit, fits_table,
|
|||||||
"_Fit__boosters": relation(
|
"_Fit__boosters": relation(
|
||||||
Booster,
|
Booster,
|
||||||
collection_class=HandledBoosterList,
|
collection_class=HandledBoosterList,
|
||||||
cascade='all, delete, delete-orphan',
|
overlaps='owner',
|
||||||
single_parent=True),
|
cascade='all, delete, delete-orphan'),
|
||||||
"_Fit__drones": relation(
|
"_Fit__drones": relation(
|
||||||
Drone,
|
Drone,
|
||||||
collection_class=HandledDroneCargoList,
|
collection_class=HandledDroneCargoList,
|
||||||
|
overlaps='owner',
|
||||||
cascade='all, delete, delete-orphan',
|
cascade='all, delete, delete-orphan',
|
||||||
single_parent=True,
|
|
||||||
primaryjoin=and_(drones_table.c.fitID == fits_table.c.ID, drones_table.c.projected == False)), # noqa
|
primaryjoin=and_(drones_table.c.fitID == fits_table.c.ID, drones_table.c.projected == False)), # noqa
|
||||||
"_Fit__fighters": relation(
|
"_Fit__fighters": relation(
|
||||||
Fighter,
|
Fighter,
|
||||||
collection_class=HandledDroneCargoList,
|
collection_class=HandledDroneCargoList,
|
||||||
|
overlaps='owner',
|
||||||
cascade='all, delete, delete-orphan',
|
cascade='all, delete, delete-orphan',
|
||||||
single_parent=True,
|
|
||||||
primaryjoin=and_(fighters_table.c.fitID == fits_table.c.ID, fighters_table.c.projected == False)), # noqa
|
primaryjoin=and_(fighters_table.c.fitID == fits_table.c.ID, fighters_table.c.projected == False)), # noqa
|
||||||
"_Fit__cargo": relation(
|
"_Fit__cargo": relation(
|
||||||
Cargo,
|
Cargo,
|
||||||
collection_class=HandledDroneCargoList,
|
collection_class=HandledDroneCargoList,
|
||||||
|
overlaps='owner',
|
||||||
cascade='all, delete, delete-orphan',
|
cascade='all, delete, delete-orphan',
|
||||||
single_parent=True,
|
|
||||||
primaryjoin=and_(cargo_table.c.fitID == fits_table.c.ID)),
|
primaryjoin=and_(cargo_table.c.fitID == fits_table.c.ID)),
|
||||||
"_Fit__projectedDrones": relation(
|
"_Fit__projectedDrones": relation(
|
||||||
Drone,
|
Drone,
|
||||||
collection_class=HandledProjectedDroneList,
|
collection_class=HandledProjectedDroneList,
|
||||||
|
overlaps='owner',
|
||||||
cascade='all, delete, delete-orphan',
|
cascade='all, delete, delete-orphan',
|
||||||
single_parent=True,
|
|
||||||
primaryjoin=and_(drones_table.c.fitID == fits_table.c.ID, drones_table.c.projected == True)), # noqa
|
primaryjoin=and_(drones_table.c.fitID == fits_table.c.ID, drones_table.c.projected == True)), # noqa
|
||||||
"_Fit__projectedFighters": relation(
|
"_Fit__projectedFighters": relation(
|
||||||
Fighter,
|
Fighter,
|
||||||
collection_class=HandledProjectedDroneList,
|
collection_class=HandledProjectedDroneList,
|
||||||
|
overlaps='owner',
|
||||||
cascade='all, delete, delete-orphan',
|
cascade='all, delete, delete-orphan',
|
||||||
single_parent=True,
|
|
||||||
primaryjoin=and_(fighters_table.c.fitID == fits_table.c.ID, fighters_table.c.projected == True)), # noqa
|
primaryjoin=and_(fighters_table.c.fitID == fits_table.c.ID, fighters_table.c.projected == True)), # noqa
|
||||||
"_Fit__implants": relation(
|
"_Fit__implants": relation(
|
||||||
Implant,
|
Implant,
|
||||||
|
|||||||
Reference in New Issue
Block a user