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):