mirror of https://github.com/snachodog/mybuddy.git
parent
4263e4809b
commit
759bbe9ddb
|
@ -183,6 +183,8 @@ class NoteSerializer(CoreModelSerializer, TaggableSerializer):
|
||||||
|
|
||||||
|
|
||||||
class SleepSerializer(CoreModelWithDurationSerializer, TaggableSerializer):
|
class SleepSerializer(CoreModelWithDurationSerializer, TaggableSerializer):
|
||||||
|
nap = serializers.BooleanField(allow_null=True, default=None, required=False)
|
||||||
|
|
||||||
class Meta(CoreModelWithDurationSerializer.Meta):
|
class Meta(CoreModelWithDurationSerializer.Meta):
|
||||||
model = models.Sleep
|
model = models.Sleep
|
||||||
fields = (
|
fields = (
|
||||||
|
|
Loading…
Reference in New Issue