Serializers allow partial updates by specifying partial=True
when initializing the serialzer. This is how PATCH
requests are handled by default in the generic views.
serializer = CommentSerializer(comment, data=request.data, partial=True)
This will allow you to update individual fields in a serializer, or all of the fields if you want, without any of the restrictions of a standard PUT
request.