Django - DRF Advanced Features
Which method should you override in a custom serializer field to change how data is shown in API responses?
to_representation converts Python data to JSON output; to_internal_value converts input JSON to Python.to_representation.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions