Closed buddy106 closed 4 years ago
Hi @buddy106,
thanks for reaching out. If you want to use a SerializerMethodField. The corresponding method should decide how you want to display the measure. Maybe as a string, or as a JSON object with separate value and unit.
Anyhow, I hope that we can bring official support for DRF to this package in a future version.
Best, Joe
I have a few MeasurementFields set up in my Django model. My serializer fails with the above message. What am I missing? How can I use MeasurementFields with the Django Rest Framework serializers?
The traceback looks like below: