unicode backrefs broken on python 2
Issue #2901
resolved
(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)
-
Account Deleted -
repo owner OK that should probably be "isinstance(self.backref, util.string_types), need to take a look.
-
repo owner - marked as blocker
-
repo owner - changed status to resolved
-
repo owner - changed milestone to 1.0.xx
- Log in to comment
(original author: gazpachoking) This is an issue when using
from __future__ import unicode_literals
, don't think it's really a problem otherwise.