Closed davidmir closed 2 years ago
Customize the data serialization (serialization the field by mapping them to a function) on CSVRenderer class. For example:
class MyUserRenderer (CSVRenderer): data_serializer_map = {'time': (lambda param: time + ' hour(s)')}
Just getting around to looking at this -- sorry about that. I'm wondering why we might do this at the renderer level as opposed to, say, the serializer.
Customize the data serialization (serialization the field by mapping them to a function) on CSVRenderer class. For example: