Adding support for marshaling bare lists.

This commit is contained in:
kevgliss 2015-07-10 17:03:28 -07:00
parent 76049b4ff1
commit b26de2b000
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class marshal_items(object):
return {'items': _filter_items(resp.items), 'total': resp.total}
if isinstance(resp, list):
return _filter_items(resp)
return {'items': _filter_items(resp), 'total': len(resp)}
return marshal(resp, self.fields)
except Exception as e: