change schema
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Torma Kristóf 2020-10-03 12:47:44 +02:00
parent 099d6adffa
commit 3563234d70
Signed by: tormakris
GPG Key ID: DC83C4F2C41B1047
1 changed files with 4 additions and 1 deletions

View File

@ -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)