Checklist
Steps to reproduce
Expected behavior
Allow labels to be specified optionally which is already a property of field. If user wants to return the field labels in place of field name, he/she should be able to configure so by setting it up in the extra_kwargs
Actual behavior
Currently, there is no such option to provide label in to_representation
Checklist
masterbranch of Django REST framework.Steps to reproduce
Expected behavior
Allow labels to be specified optionally which is already a property of field. If user wants to return the field labels in place of field name, he/she should be able to configure so by setting it up in the
extra_kwargsActual behavior
Currently, there is no such option to provide label in
to_representation