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))