mirror of https://github.com/snachodog/mybuddy.git
add notes to applicable APIs
This commit is contained in:
parent
f5d523ba80
commit
172167e6a1
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue