From 0cd9584fcd539a5d6417aa168c41eb67a4d7f297 Mon Sep 17 00:00:00 2001 From: Konsta Vesterinen Date: Mon, 18 Mar 2019 14:57:11 +0200 Subject: [PATCH] Add SA 1.3 support --- CHANGES.rst | 6 ++++++ sqlalchemy_continuum/__init__.py | 2 +- sqlalchemy_continuum/relationship_builder.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index 7a276f85..9a94f54e 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -4,6 +4,12 @@ Changelog Here you can see the full list of changes between each SQLAlchemy-Continuum release. +1.3.9 (2019-03-18) +^^^^^^^^^^^^^^^^^^ + +- Added SA 1.3 support + + 1.3.8 (2019-02-27) ^^^^^^^^^^^^^^^^^^ diff --git a/sqlalchemy_continuum/__init__.py b/sqlalchemy_continuum/__init__.py index bb0c3bc5..4de143f4 100644 --- a/sqlalchemy_continuum/__init__.py +++ b/sqlalchemy_continuum/__init__.py @@ -18,7 +18,7 @@ ) -__version__ = '1.3.8' +__version__ = '1.3.9' versioning_manager = VersioningManager() diff --git a/sqlalchemy_continuum/relationship_builder.py b/sqlalchemy_continuum/relationship_builder.py index f3dc368d..73a2ef78 100644 --- a/sqlalchemy_continuum/relationship_builder.py +++ b/sqlalchemy_continuum/relationship_builder.py @@ -355,7 +355,7 @@ def __call__(self): # store remote cls to association table column pairs self.remote_to_association_column_pairs = [] for column_pair in self.property.local_remote_pairs: - if column_pair[0] in self.property.table.c.values(): + if column_pair[0] in self.property.target.c.values(): self.remote_to_association_column_pairs.append(column_pair) setattr(