diff --git a/opentech/apply/funds/blocks.py b/opentech/apply/funds/blocks.py index fd51346a91b3e6e1b398b2976d25a210ba6e0a73..a8b4a83d90277b589afc8cb907e98d7718e94b55 100644 --- a/opentech/apply/funds/blocks.py +++ b/opentech/apply/funds/blocks.py @@ -1,5 +1,6 @@ from collections import Counter +from django import forms from django.core.exceptions import ValidationError from django.forms.utils import ErrorList from django.utils.translation import ugettext_lazy as _ @@ -106,6 +107,7 @@ class TitleBlock(MustIncludeFieldBlock): class ValueBlock(MustIncludeFieldBlock): name = 'value' description = 'The value of the project' + widget = forms.NumberInput REQUIRED_BLOCK_NAMES = [block.name for block in MustIncludeFieldBlock.__subclasses__()]