I am writing an API using django-rest-framework that is used to display custom tables at the frontend.
I need to add metadata to the json returned by model serializer:
- provide custom display name for nearly all fields;
- mark some fields unsortable so that sorting controls are not displayed in the UI for corresponding columns;
- specify header rotation angle for narrow columns.
I tried googling this but all I find is how to add a custom non-model field to ModelSerializer.