Setting 0/1-to-1 relationship in SQLAlchemy?
- by Timmy
is there a proper way of setting up a 0/1-to-1 relationship? i want to be able to check if the related item exists without creating it:
if item.relationship is None:
item.relationship = item2()
but it creates the insert statements on the if statement