Skip to content

Commit

Permalink
Merge pull request #9 from carl-wallace/master
Browse files Browse the repository at this point in the history
Align with recent SQLAlchemy change
  • Loading branch information
amol- authored May 3, 2020
2 parents 9bd44d3 + 69c8639 commit 372234a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sprox/sa/support.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ class Binary(LargeBinary):


def resolve_entity(entity):
if inspect.isfunction(entity):
if inspect.isfunction(entity) or inspect.ismethod(entity):
entity = entity()
if _class_resolver is not None and isinstance(entity, _class_resolver):
entity = entity()
return entity


0 comments on commit 372234a

Please sign in to comment.