Commit b39e8304 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Let API deal with empty json quantities.

parent dfadeb45
......@@ -22,7 +22,10 @@ _default_per_page = 25
# transforms
def json_str(value):
return json.loads(value)
if value is None or value == '':
return None
else:
return json.loads(value)
def int_id(value):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment