+ if self.cleaned_data['amount'] < settings.FUNDING_MIN_AMOUNT:
+ min_amount = settings.FUNDING_MIN_AMOUNT
+ if isinstance(settings.FUNDING_MIN_AMOUNT, float):
+ min_amount = formats.number_format(settings.FUNDING_MIN_AMOUNT, 2)
+ raise forms.ValidationError(
+ ugettext("The minimum amount is %(amount)s PLN.") % {
+ 'amount': min_amount})