We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3332c4 + 028e7e6 commit e29d47fCopy full SHA for e29d47f
rest_framework_json_api/metadata.py
@@ -131,4 +131,7 @@ def get_field_info(self, field):
131
for choice_value, choice_name in field.choices.items()
132
]
133
134
+ if hasattr(serializer, 'included_serializers') and 'relationship_resource' in field_info:
135
+ field_info['allows_include'] = field.field_name in serializer.included_serializers
136
+
137
return field_info
0 commit comments