From de9d705455770a4d532f3b36151217c857a899f9 Mon Sep 17 00:00:00 2001 From: Ciro Scognamiglio Date: Wed, 26 Feb 2014 19:45:31 +0100 Subject: [PATCH] fixed small bug with properties content not being updated --- rest/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rest/__init__.py b/rest/__init__.py index 3f25d776..91f126ce 100644 --- a/rest/__init__.py +++ b/rest/__init__.py @@ -29,7 +29,7 @@ class DecimalEncoder(json.JSONEncoder): def dispatch(request, object_type, object_name): - object_properties = [] + object_properties = None object_filters = {} switch = { @@ -49,8 +49,7 @@ def dispatch(request, object_type, object_name): object_filters[el[0][8:-1]] = el[1] elif el[0].startswith('columns'): object_properties = request.POST.getlist('columns[]') - - + # platform is local if ((object_type == 'platform') or (object_type == 'testbed')) : object_type = 'local:platform' -- 2.43.0