I have several serializers with related fields or serializers as fields, but with the default configuration of Django Rest Framework, either everything is dumped, or only the ID, or a URL.
I want to be able to control the verbosity of the representation a bit more:
- sometime I want just the ID or my related field;
- sometime I want the full object dump.
- I may want the ID in ouput, and the dump in output.
Right now I have to serialize everything manually because I can't find a quick and easy way to tell DRF, hey, here just do this.
Is there such a way ?