Skip to content
Snippets Groups Projects
Unverified Commit 98159a09 authored by Sandeep Chauhan's avatar Sandeep Chauhan Committed by GitHub
Browse files

Add valid number validation for Requested amount field (#3801)

Fixes #3787 
parent fb96f0bd
No related branches found
No related tags found
1 merge request!76Merge up to 5.6.0
...@@ -45,6 +45,7 @@ class ValueBlock(ApplicationSingleIncludeFieldBlock): ...@@ -45,6 +45,7 @@ class ValueBlock(ApplicationSingleIncludeFieldBlock):
name = "value" name = "value"
description = "The value of the project" description = "The value of the project"
widget = forms.NumberInput(attrs={"min": 0}) widget = forms.NumberInput(attrs={"min": 0})
field_class = forms.FloatField
class Meta: class Meta:
label = _("Requested amount") label = _("Requested amount")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment