unicode backrefs broken on python 2

Issue #2901 resolved
Former user created an issue

(original reporter: gazpachoking) It seems that backrefs can no longer be unicode strings on 0.9 in python 2. When they are, the following problem occurs, due to the type check if isinstance(self.backref, str)::

  File "...\sqlalchemy\orm\relationships.py", line 1566, in _generate_backref
    backref_key, kwargs = self.backref
ValueError: too many values to unpack

Comments (5)

  1. Former user Account Deleted

    (original author: gazpachoking) This is an issue when using from __future__ import unicode_literals, don't think it's really a problem otherwise.

  2. Mike Bayer repo owner

    OK that should probably be "isinstance(self.backref, util.string_types), need to take a look.

  3. Log in to comment