From fe4e4328d2a6f46c29f5a842cf341b02ad6a9c87 Mon Sep 17 00:00:00 2001 From: Todd Dembrey <todd.dembrey@torchbox.com> Date: Wed, 24 Jan 2018 09:41:56 +0000 Subject: [PATCH] Change the input type to be a number for the value widget --- opentech/apply/funds/blocks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/opentech/apply/funds/blocks.py b/opentech/apply/funds/blocks.py index fd51346a9..a8b4a83d9 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__()] -- GitLab