supporter: Fix format string syntax error.

This commit is contained in:
Brett Smith 2016-12-02 15:15:49 -05:00
parent 4fa0f8343c
commit 501b4b05fc

View file

@ -7,7 +7,7 @@ def index(request):
except (KeyError, ValueError): except (KeyError, ValueError):
validator.fail() validator.fail()
else: else:
validator.validate('{.2f}'.format(amount_param)) validator.validate('{:.2f}'.format(amount_param))
partial_amount = amount_param if validator.valid else 0 partial_amount = amount_param if validator.valid else 0
context = { context = {
'partial_amount': partial_amount, 'partial_amount': partial_amount,