[Fixed]-How to dynamically add `read_only = True` on a field on serializer when creating object

1👍

You need to override the create method on your serializer http://www.django-rest-framework.org/api-guide/serializers/#saving-instances Then, inside the validated_data, you need to save the objects manually.

Leave a comment