Skip to content

Commit 23256f1

Browse files
authored
Merge pull request #32 from AdCombo/fix-getting-schema
Fix faulty way to get schema
2 parents c8dfbc5 + 019162b commit 23256f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_combo_jsonapi/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def get_related_schema(schema, field):
140140
:param field: the relationship field
141141
:return Schema: the related schema
142142
"""
143-
return schema._declared_fields[field].__dict__['_Relationship__schema']
143+
return schema._declared_fields[field].schema
144144

145145

146146
def get_schema_from_type(resource_type):

0 commit comments

Comments
 (0)