[Answered ]-Django REST Framework – Get reversed value of boolean field in serializer

1👍

If you need to reverse the value you can’ t use a BooleanField, the simplest solution is to use a SerializerMethodField as you have already done. Or you could also create a custom field class, but that is more complicated.

Leave a comment