From b13fc99e9583e2a541497264d8047cb4ddd26dd5 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Wed, 1 Nov 2023 19:43:46 -0500 Subject: [PATCH] Use shared logic to get batch handler --- tailbone/api/batch/core.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tailbone/api/batch/core.py b/tailbone/api/batch/core.py index c98e01f1..f7bc9333 100644 --- a/tailbone/api/batch/core.py +++ b/tailbone/api/batch/core.py @@ -66,9 +66,7 @@ class APIBatchMixin(object): """ app = self.get_rattail_app() key = self.get_batch_class().batch_key - spec = self.rattail_config.get('rattail.batch', '{}.handler'.format(key), - default=self.default_handler_spec) - return app.load_object(spec)(self.rattail_config) + return app.get_batch_handler(key, default=self.default_handler_spec) class APIBatchView(APIBatchMixin, APIMasterView):