Adds new PATCH properties for device

This commit is contained in:
emmdim 2020-03-20 15:47:42 +01:00
parent b70c229485
commit bd396f0642
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ class DeviceView(View):
if isinstance(dev, Computer): if isinstance(dev, Computer):
resource_def = app.resources['Computer'] resource_def = app.resources['Computer']
# TODO check how to handle the 'actions_one' # TODO check how to handle the 'actions_one'
patch_schema = resource_def.SCHEMA(only=['ethereum_address', 'actions_one'], partial=True) patch_schema = resource_def.SCHEMA(only=['ethereum_address', 'transfer_state', 'deliverynote_address', 'actions_one'], partial=True)
json = request.get_json(schema=patch_schema) json = request.get_json(schema=patch_schema)
# TODO check how to handle the 'actions_one' # TODO check how to handle the 'actions_one'
json.pop('actions_one') json.pop('actions_one')