Add create_at and modified_at on API for devices

develop
Ensar Sarajčić 2018-11-03 15:22:35 +01:00
parent 584697e58e
commit fc00f96f04
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ class DeviceSchema(BaseResourceSchema):
name = fields.Str(required=True)
device_type = fields.Nested(BasicDeviceTypeSchema, dump_only=True)
device_type_id = fields.Integer(load_only=True, missing=1)
created_at = fields.DateTime(dump_only=True)
modified_at = fields.DateTime(dump_only=True)
class DeviceWithConfigurationSchema(DeviceSchema):