Let settings determine which batch handler to use for vendor catalog views.
This commit is contained in:
parent
7c761bee99
commit
c328c96203
2 changed files with 29 additions and 2 deletions
|
@ -366,7 +366,15 @@ class BatchCrud(BaseCrud):
|
|||
|
||||
def __init__(self, request):
|
||||
self.request = request
|
||||
self.handler = self.batch_handler_class(config=self.request.rattail_config)
|
||||
self.handler = self.get_handler()
|
||||
|
||||
def get_handler(self):
|
||||
"""
|
||||
Returns a `BatchHandler` instance for the view. Derived classes may
|
||||
override this as needed. The default is to create an instance of
|
||||
:attr:`batch_handler_class`.
|
||||
"""
|
||||
return self.batch_handler_class(self.request.rattail_config)
|
||||
|
||||
def fieldset(self, model):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue