another batch of files with a light sprinkle of comments
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
# Serializers. Defines which fields from an object get to the JSON object
|
||||
# Also optionally define POST, PATCH methods (create, update)
|
||||
|
||||
from rest_framework import serializers
|
||||
from rowers.models import Workout,Rower,StrokeData,FavoriteChart
|
||||
|
||||
@@ -104,6 +107,7 @@ class WorkoutSerializer(serializers.ModelSerializer):
|
||||
instance.save()
|
||||
return instance
|
||||
|
||||
# This is just a fake one for URL registration purposes
|
||||
class StrokeDataSerializer(serializers.Serializer):
|
||||
workoutid = serializers.IntegerField
|
||||
strokedata = serializers.JSONField
|
||||
|
||||
Reference in New Issue
Block a user