Refs #928 -- Allow to regenerate secrets of specific tickets

This commit is contained in:
Raphael Michel
2018-05-31 12:55:06 +02:00
parent 31380bbef2
commit bbb78aa5e6
5 changed files with 27 additions and 0 deletions

View File

@@ -631,6 +631,8 @@ class OrderChange(OrderView):
ocm.cancel(p)
elif p.form.cleaned_data['operation'] == 'split':
ocm.split(p)
elif p.form.cleaned_data['operation'] == 'secret':
ocm.regenerate_secret(p)
except OrderError as e:
p.custom_error = str(e)