Wyatt Baldwin  committed c489aa3

Fix for `_modify_params_for_relationships` for case when param for relation is
list that contains unmapped (in the SQLAlchemy sense) values. Copied code from
lines 237-239.

Note: this is a "paper towel roll patch" (attr: chrism @

  • Participants
  • Parent commits 6307f5e
  • Branches default

Comments (0)

Files changed (1)

File sprox/

                             except UnmappedInstanceError:
                                 #xxx: make this work for multiple pks
-                                if isinstance(target.primary_key[0].type, Integer):
+                                mapper = target
+                                if not isinstance(mapper, Mapper):
+                                    mapper = class_mapper(target)
+                                if isinstance(mapper.primary_key[0].type, Integer):
                                     v = int(v)
                     elif prop.uselist: