add notes to applicable APIs

This commit is contained in:
jcgoette 2021-02-09 13:31:07 -05:00 committed by Christopher Charbonneau Wells
parent f5d523ba80
commit 172167e6a1
1 changed files with 5 additions and 5 deletions

View File

@ -103,14 +103,14 @@ class ChildSerializer(serializers.HyperlinkedModelSerializer):
class DiaperChangeSerializer(CoreModelSerializer): class DiaperChangeSerializer(CoreModelSerializer):
class Meta: class Meta:
model = models.DiaperChange model = models.DiaperChange
fields = ('id', 'child', 'time', 'wet', 'solid', 'color', 'amount') fields = ('id', 'child', 'time', 'wet', 'solid', 'color', 'amount', 'notes')
class FeedingSerializer(CoreModelWithDurationSerializer): class FeedingSerializer(CoreModelWithDurationSerializer):
class Meta(CoreModelWithDurationSerializer.Meta): class Meta(CoreModelWithDurationSerializer.Meta):
model = models.Feeding model = models.Feeding
fields = ('id', 'child', 'start', 'end', 'duration', 'type', 'method', fields = ('id', 'child', 'start', 'end', 'duration', 'type', 'method',
'amount') 'amount', 'notes')
class NoteSerializer(CoreModelSerializer): class NoteSerializer(CoreModelSerializer):
@ -122,13 +122,13 @@ class NoteSerializer(CoreModelSerializer):
class SleepSerializer(CoreModelWithDurationSerializer): class SleepSerializer(CoreModelWithDurationSerializer):
class Meta(CoreModelWithDurationSerializer.Meta): class Meta(CoreModelWithDurationSerializer.Meta):
model = models.Sleep model = models.Sleep
fields = ('id', 'child', 'start', 'end', 'duration', 'nap') fields = ('id', 'child', 'start', 'end', 'duration', 'nap', 'notes')
class TemperatureSerializer(CoreModelSerializer): class TemperatureSerializer(CoreModelSerializer):
class Meta: class Meta:
model = models.Temperature model = models.Temperature
fields = ('id', 'child', 'temperature', 'time') fields = ('id', 'child', 'temperature', 'time', 'notes')
class TimerSerializer(CoreModelSerializer): class TimerSerializer(CoreModelSerializer):
@ -163,4 +163,4 @@ class TummyTimeSerializer(CoreModelWithDurationSerializer):
class WeightSerializer(CoreModelSerializer): class WeightSerializer(CoreModelSerializer):
class Meta: class Meta:
model = models.Weight model = models.Weight
fields = ('id', 'child', 'weight', 'date') fields = ('id', 'child', 'weight', 'date', 'notes')