How Perform Patch Operation On Nested Serializer With Dictionary Field
I have Model with dictionary object, in below example want to set and get daily availability example Currently I am able to read, want to make this to read and write, what should I
Solution 1:
Problem lies in the way you have defined your serializer.
You have defined teacher_date
as read_only field. Hence, this field will be ignored in PUT/POST call.
teacher_date = AvailabilityDetails(many=True, read_only=True)
Refer this https://www.django-rest-framework.org/api-guide/fields/#read_only
Post a Comment for "How Perform Patch Operation On Nested Serializer With Dictionary Field"