From 98159a09fa930d7799ba6661b0db48d7b7f02b54 Mon Sep 17 00:00:00 2001
From: Sandeep Chauhan <sandeepsajan0@gmail.com>
Date: Mon, 18 Mar 2024 16:07:51 +0530
Subject: [PATCH] Add valid number validation for Requested amount field
 (#3801)

Fixes #3787
---
 hypha/apply/funds/blocks.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hypha/apply/funds/blocks.py b/hypha/apply/funds/blocks.py
index 4984c4823..9da63d116 100644
--- a/hypha/apply/funds/blocks.py
+++ b/hypha/apply/funds/blocks.py
@@ -45,6 +45,7 @@ class ValueBlock(ApplicationSingleIncludeFieldBlock):
     name = "value"
     description = "The value of the project"
     widget = forms.NumberInput(attrs={"min": 0})
+    field_class = forms.FloatField
 
     class Meta:
         label = _("Requested amount")
-- 
GitLab