diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-01-30 22:47:28 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2009-01-30 22:47:28 +0000 |
| commit | 85e8509399d1617f0dfc18cc1a0c5aeb10c3ccc7 (patch) | |
| tree | db936c8e525d21553abaf3f68a65f0df0d0a914a /lib | |
| parent | 0749bc3850481842b40ff310eecc23d9bc5f93e8 (diff) | |
| download | sqlalchemy-85e8509399d1617f0dfc18cc1a0c5aeb10c3ccc7.tar.gz | |
detect backref string as basestring, not str. [ticket:1301]
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/sqlalchemy/orm/properties.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/orm/properties.py b/lib/sqlalchemy/orm/properties.py index 73e794370..d5857d965 100644 --- a/lib/sqlalchemy/orm/properties.py +++ b/lib/sqlalchemy/orm/properties.py @@ -417,7 +417,7 @@ class RelationProperty(StrategizedProperty): if backref: raise sa_exc.ArgumentError("backref and back_populates keyword arguments are mutually exclusive") self.backref = None - elif isinstance(backref, str): + elif isinstance(backref, basestring): # propagate explicitly sent primary/secondary join conditions to the BackRef object if # just a string was sent if secondary is not None: |
