Fix tests failing after last commit

This commit is contained in:
Raphael Michel
2017-06-19 16:17:08 +02:00
parent 123d2f6120
commit 6ae5c5e6ce
2 changed files with 4 additions and 1 deletions

View File

@@ -499,7 +499,7 @@ class OrderChange(OrderView):
try:
ocm.add_position(item, variation,
self.add_form.cleaned_data['price'],
self.add_form.cleaned_data['addon_to'])
self.add_form.cleaned_data.get('addon_to'))
except OrderError as e:
self.add_form.custom_error = str(e)
return False