Browse Source

add Pi simulation values to serializer

master
Brian S. Stephan 1 year ago
parent
commit
d888c5f03b
  1. 2
      pi/serializers.py

2
pi/serializers.py

@ -6,6 +6,8 @@ from pi.models import PiLog
class PiLogSerializer(serializers.ModelSerializer):
"""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:
"""Meta options."""

Loading…
Cancel
Save