Self hosted FLOSS fitness/workout, nutrition and weight tracker
Manually set the serializer to set the coerce_to_string option
Roland Geiderd59e17ddd628
diff --git a/wger/measurements/api/serializers.py b/wger/measurements/api/serializers.pyindex 47290cd6a..94d35e52b 100644--- a/wger/measurements/api/serializers.py+++ b/wger/measurements/api/serializers.py@@ -27,6 +27,15 @@ class MeasurementSerializer(serializers.ModelSerializer):Measurement serializer"""+ # Manually set the serializer to set the coerce_to_string option+ value = serializers.DecimalField(+ max_digits=6,+ decimal_places=2,+ min_value=0,+ max_value=5000,+ coerce_to_string=False,+ )+class Meta:model = Measurementfields = [