Pop more _deleted attributes.

This commit is contained in:
2016-05-02 17:43:06 +02:00
parent 838fbd14ae
commit e088b56560
2 changed files with 3 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ class Node(List, Find, Create, Post, Update, Delete, Replace):
attributes.pop('_created')
attributes.pop('_updated')
attributes.pop('_links', None)
attributes.pop('_deleted', None)
attributes.pop('allowed_methods')
attributes = utils.remove_none_attributes(attributes)

View File

@@ -263,6 +263,7 @@ class Update(Resource):
attributes.pop('_created')
attributes.pop('_updated')
attributes.pop('_links', None)
attributes.pop('_deleted', None)
attributes = utils.remove_none_attributes(attributes)
url = utils.join_url(self.path, str(self['_id']))
headers = utils.merge_dict(
@@ -293,6 +294,7 @@ class Replace(Resource):
attributes.pop('_created')
attributes.pop('_updated')
attributes.pop('_links', None)
attributes.pop('_deleted', None)
if 'parent' in attributes:
attributes.pop('parent')
url = utils.join_url(self.path, str(self['_id']))