mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-10 03:49:24 +00:00
Redirect when cancelling instead of submitting a form
This commit is contained in:
@ -260,6 +260,7 @@ class CounterClick(CounterTabsMixin, CanViewMixin, SingleObjectMixin, FormView):
|
||||
product
|
||||
)
|
||||
kwargs["customer"] = self.customer
|
||||
kwargs["cancel_url"] = self.get_success_url()
|
||||
|
||||
# To get all forms errors to the javascript, we create a list of error list
|
||||
kwargs["form_errors"] = []
|
||||
|
Reference in New Issue
Block a user