Skip to content

Commit a71b2b8

Browse files
committed
Merge pull request #7 from angelosarto/patch-1
Correct type for items in relationship
2 parents 0903f2e + da15f6f commit a71b2b8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sqlalchemy_jsonapi/serializer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ def _render_full_resource(self, instance, include, fields):
366366
if key in local_fields:
367367
to_ret['relationships'][key]['data'].append({
368368
'id': item.id,
369-
'type': api_type
369+
'type': item.__jsonapi_type__
370370
})
371371

372372
if key in include.keys():

0 commit comments

Comments
 (0)