From eefc3b33d7bc882dd02999069c93d08e6d0398e2 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Tue, 23 Jan 2018 17:41:01 -0600 Subject: [PATCH] Fix some master3 edit issues for products view --- tailbone/views/products.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tailbone/views/products.py b/tailbone/views/products.py index 461cb956..2533f535 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -498,9 +498,8 @@ class ProductsView(MasterView): form = self.make_form(instance) product_deleted = instance.deleted if self.request.method == 'POST': - if form.validate(): - self.save_form(form) - self.after_edit(instance) + 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(instance))) return self.redirect(self.get_action_url('view', instance))