Remove references to deprecated batch handler methods
This commit is contained in:
parent
cb39ca7970
commit
242bcd7603
3 changed files with 5 additions and 5 deletions
|
@ -306,7 +306,7 @@ class BatchMasterView(MasterView):
|
|||
return True
|
||||
|
||||
def redirect_after_create(self, batch):
|
||||
if self.handler.requires_prefill(batch):
|
||||
if self.handler.should_populate(batch):
|
||||
return self.redirect(self.get_action_url('prefill', batch))
|
||||
elif self.refresh_after_create:
|
||||
return self.redirect(self.get_action_url('refresh', batch))
|
||||
|
@ -501,7 +501,7 @@ class BatchMasterView(MasterView):
|
|||
session = RattailSession()
|
||||
batch = session.query(self.model_class).get(batch_uuid)
|
||||
try:
|
||||
self.handler.make_initial_rows(batch, progress=progress)
|
||||
self.handler.populate(batch, progress=progress)
|
||||
except Exception as error:
|
||||
session.rollback()
|
||||
log.warning("batch pre-fill failed: {}".format(batch), exc_info=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue