add Pi simulation values to serializer
This commit is contained in:
parent
d7b7bdf73d
commit
d888c5f03b
@ -6,6 +6,8 @@ from pi.models import PiLog
|
|||||||
|
|
||||||
class PiLogSerializer(serializers.ModelSerializer):
|
class PiLogSerializer(serializers.ModelSerializer):
|
||||||
"""Pi simulation log entry serializer for the REST API."""
|
"""Pi simulation log entry serializer for the REST API."""
|
||||||
|
simulation_x = serializers.DecimalField(11, 10, coerce_to_string=False)
|
||||||
|
simulation_y = serializers.DecimalField(11, 10, coerce_to_string=False)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
"""Meta options."""
|
"""Meta options."""
|
||||||
|
Loading…
Reference in New Issue
Block a user