From 6c913091e50ab72a15afa80e51345fa3a5d49b91 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 4 Aug 2017 16:14:34 -0400 Subject: [PATCH] Fixing delete for issue #84 --- satellite_populate/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/satellite_populate/api.py b/satellite_populate/api.py index a57ef81..7fecbc6 100644 --- a/satellite_populate/api.py +++ b/satellite_populate/api.py @@ -117,7 +117,7 @@ def action_delete(self, rendered_action_data, action_data, search, model, # currently only works based on a single id # should iterate all results and delete one by one? - model(id=entity_id).delete() + search_result.delete() self.logger.info("delete: %s %s", model, entity_id) def validate(self, rendered_action_data, action_data, search, action):