Add create_at and modified_at on API for devices
parent
584697e58e
commit
fc00f96f04
|
@ -24,6 +24,8 @@ class DeviceSchema(BaseResourceSchema):
|
||||||
name = fields.Str(required=True)
|
name = fields.Str(required=True)
|
||||||
device_type = fields.Nested(BasicDeviceTypeSchema, dump_only=True)
|
device_type = fields.Nested(BasicDeviceTypeSchema, dump_only=True)
|
||||||
device_type_id = fields.Integer(load_only=True, missing=1)
|
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):
|
class DeviceWithConfigurationSchema(DeviceSchema):
|
||||||
|
|
Loading…
Reference in New Issue