Refactor label batch view to use master3

This commit is contained in:
Lance Edgar 2018-01-26 19:14:15 -06:00
parent efdbc3c5b5
commit d20601c359
2 changed files with 35 additions and 26 deletions

View file

@ -336,7 +336,7 @@ class BatchMasterView(MasterView):
form = self.make_form(batch)
if self.request.method == 'POST':
if form.validate():
if self.validate_form(form):
self.save_edit_form(form)
self.request.session.flash("{} has been updated: {}".format(
self.get_model_title(), self.get_instance_title(batch)))