How to show the human readable form of choices in DRF
How to show the human readable form of choices in DRF. I have genders choices. I have used serializermethodField()
to solve this but it's read only and cannot write.
GENDER = (
('M', "Male"),
("F", "Female"),
("O", "Other")
)
so in response I get
{
"gender": "M",
}
response I want
{
"gender": "Male",
}