Private
Public Access
1
0

another batch of files with a light sprinkle of comments

This commit is contained in:
Sander Roosendaal
2017-01-15 16:06:14 +01:00
parent 737ac5fd3f
commit e5810dbf62
11 changed files with 64 additions and 11 deletions

View File

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