Skip to content

Commit cdd656b

Browse files
committed
fix inheritance from non-spyne classes
1 parent 7d6652d commit cdd656b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spyne/store/relational/_base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,9 @@ def _parent_mapper_has_property(cls, cls_bases, k):
10191019
return False
10201020

10211021
for b in cls_bases:
1022+
if not hasattr(b, 'Attributes'):
1023+
continue
1024+
10221025
mapper = b.Attributes.sqla_mapper
10231026
if mapper is not None and mapper.has_property(k):
10241027
# print(" Skipping mapping field", "%s.%s" % (cls.__name__, k),

0 commit comments

Comments
 (0)