diff --git a/ckanext/datastore/logic/action.py b/ckanext/datastore/logic/action.py index d40067bdbe0..c6642af810a 100644 --- a/ckanext/datastore/logic/action.py +++ b/ckanext/datastore/logic/action.py @@ -76,7 +76,7 @@ def datastore_create(context, data_dict): **Results:** - :returns: The newly created data object. + :returns: The newly created data object, excluding ``records`` passed. :rtype: dictionary See :ref:`fields` and :ref:`records` for details on how to lay out records. @@ -168,6 +168,7 @@ def datastore_create(context, data_dict): result.pop('id', None) result.pop('private', None) result.pop('connection_url', None) + result.pop('records', None) return result