This commit is contained in:
parent
099d6adffa
commit
3563234d70
@ -1,4 +1,6 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
from flask_marshmallow.sqla import auto_field
|
||||||
|
|
||||||
from models import SampleMetadata
|
from models import SampleMetadata
|
||||||
from marshm import ma
|
from marshm import ma
|
||||||
from marshmallow import fields
|
from marshmallow import fields
|
||||||
@ -32,4 +34,5 @@ class SampleMetadataSchema(ma.SQLAlchemyAutoSchema):
|
|||||||
"""
|
"""
|
||||||
class Meta:
|
class Meta:
|
||||||
model = SampleMetadata
|
model = SampleMetadata
|
||||||
exclude = ('timestamp', 'id',)
|
exclude = ('timestamp', 'id', 'device_date',)
|
||||||
|
date = auto_field("device_date", dump_only=False)
|
||||||
|
Loading…
Reference in New Issue
Block a user