diff --git a/api/serializers.py b/api/serializers.py index af3982b6..1a8191eb 100644 --- a/api/serializers.py +++ b/api/serializers.py @@ -183,6 +183,8 @@ class NoteSerializer(CoreModelSerializer, TaggableSerializer): class SleepSerializer(CoreModelWithDurationSerializer, TaggableSerializer): + nap = serializers.BooleanField(allow_null=True, default=None, required=False) + class Meta(CoreModelWithDurationSerializer.Meta): model = models.Sleep fields = (