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.
Source:stackexchange.com