add Pi simulation values to serializer

This commit is contained in:
Brian S. Stephan 2021-04-24 17:34:09 -05:00
parent d7b7bdf73d
commit d888c5f03b

View File

@ -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."""