Skip to content

Commit

Permalink
Bulk delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Amedeo91 committed Jun 20, 2017
1 parent c8ed78f commit d4b10e3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion eve/methods/delete.py
Expand Up @@ -216,7 +216,6 @@ def delete(resource, **lookup):
if resource_def['soft_delete']:
# Soft delete all items not already marked deleted
# (by default, data.find doesn't return soft deleted items)
print(str(originals))
for document in originals:
lookup[id_field] = document[id_field]
deleteitem_internal(resource, concurrency_check=False,
Expand Down
1 change: 0 additions & 1 deletion eve/tests/methods/delete.py
Expand Up @@ -29,7 +29,6 @@ def test_bulk_delete_id_field(self):
if "parent_product" in product]
# Deletion of all the product in the first cart
url = self.child_products_url.replace('<regex("[A-Z]+"):parent_product>', list_products_skus[0])
print(url)
_, status = self.delete(url)
self.assert204(status)
_, status = self.get(url)
Expand Down

0 comments on commit d4b10e3

Please sign in to comment.