Skip to content

Commit 4aa6c5b

Browse files
committed
Added a 'Catch all' field type -> GenericField
1 parent 79ce383 commit 4aa6c5b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rest_framework_json_api/metadata.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class JSONAPIMetadata(SimpleMetadata):
1717
for us to base this on.
1818
"""
1919
type_lookup = ClassLookupDict({
20+
serializers.Field: 'GenericField',
2021
serializers.HyperlinkedIdentityField: 'Relationship',
2122
serializers.HyperlinkedRelatedField: 'Relationship',
2223
serializers.BooleanField: 'Boolean',

0 commit comments

Comments
 (0)