I have a model with multiple fields but I only want to expose some or a combination of them. For example the model has opening_time=12:00 and closing_time=18:00 and I want to return the field opening_hours=[12:00, 18:00] to the JSON.
This is just an example, but I have also some other fields to combine into one in the return JSON. How can I do this? Is there a way to use a ModelSerializer?