diff --git a/src/schemas.py b/src/schemas.py index 459a957..2dc8ab1 100644 --- a/src/schemas.py +++ b/src/schemas.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +from flask_marshmallow.sqla import auto_field + from models import SampleMetadata from marshm import ma from marshmallow import fields @@ -32,4 +34,5 @@ class SampleMetadataSchema(ma.SQLAlchemyAutoSchema): """ class Meta: model = SampleMetadata - exclude = ('timestamp', 'id',) + exclude = ('timestamp', 'id', 'device_date',) + date = auto_field("device_date", dump_only=False)