Stream serializers
hypha.apply.api.v1.stream_serializers
¶
WagtailSerializer
¶
get_serializer_fields
¶
Get the respective serializer fields for all the form fields.
Source code in hypha/apply/api/v1/stream_serializers.py
find_function_args
¶
Get the list of parameter names which function accepts.
Source code in hypha/apply/api/v1/stream_serializers.py
find_class_args
¶
Find all class arguments (parameters) which can be passed in __init__
.
Source code in hypha/apply/api/v1/stream_serializers.py
find_matching_class_kwargs
¶
get_serializer_field_class
¶
Assumes that a serializer field exist with the same name as form field.
TODO: In case there are form fields not existing in serializer fields, we would have to create mapping b/w form fields and serializer fields to get the respective classes. But for now this works.