Allow admin to manually change order email

This commit is contained in:
Raphael Michel
2016-09-01 21:51:41 +02:00
parent ae2d551d7d
commit a764e6f55b
7 changed files with 72 additions and 1 deletions

View File

@@ -88,3 +88,9 @@ class OrderPositionChangeForm(forms.Form):
def clean(self):
if self.cleaned_data.get('operation') == 'price' and not self.cleaned_data.get('price', '') != '':
raise ValidationError(_('You need to enter a price if you want to change the product price.'))
class OrderContactForm(forms.ModelForm):
class Meta:
model = Order
fields = ['email']