Skip to content

Commit 372234a

Browse files
authored
Merge pull request #9 from carl-wallace/master
Align with recent SQLAlchemy change
2 parents 9bd44d3 + 69c8639 commit 372234a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sprox/sa/support.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ class Binary(LargeBinary):
2828

2929

3030
def resolve_entity(entity):
31-
if inspect.isfunction(entity):
31+
if inspect.isfunction(entity) or inspect.ismethod(entity):
3232
entity = entity()
3333
if _class_resolver is not None and isinstance(entity, _class_resolver):
3434
entity = entity()
3535
return entity
3636

37+

0 commit comments

Comments
 (0)