Add "regenerate secrets" option to OrderContactForm

This commit is contained in:
Raphael Michel
2016-11-28 12:52:44 +01:00
parent 4d7b5a0a3b
commit 0f8d520336
2 changed files with 17 additions and 2 deletions

View File

@@ -105,6 +105,12 @@ class OrderPositionChangeForm(forms.Form):
class OrderContactForm(forms.ModelForm):
regenerate_secrets = forms.BooleanField(required=False, label=_('Invalidate secrets'),
help_text=_('Regenerates the order and ticket secrets. You will '
'need to re-send the link to the order page to the user and '
'the user will need to download his tickets again. The old '
'versions will be invalid.'))
class Meta:
model = Order
fields = ['email']