Skip to content

Commit 7ad1b06

Browse files
committed
Remove all spaces from value.
1 parent afc0357 commit 7ad1b06

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

hypha/apply/funds/blocks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class LocalizedFloatField(forms.FloatField):
3232

3333
def to_python(self, value):
3434
if value not in self.empty_values:
35-
value = str(value).strip()
35+
# Remove all spaces.
36+
value = str(value).strip().replace(" ", "")
3637
has_dot = "." in value
3738
has_comma = "," in value
3839

0 commit comments

Comments
 (0)