Also allow spaces in numbers

Apparently this is a French thing.
This commit is contained in:
Chris Hill-Scott
2019-02-27 10:19:35 +00:00
parent 9f63449384
commit a24c853dce
2 changed files with 3 additions and 3 deletions

View File

@@ -181,7 +181,7 @@ class ForgivingIntegerField(StringField):
if valuelist:
valuelist[0] = valuelist[0].replace(',', '')
valuelist[0] = valuelist[0].replace(',', '').replace(' ', '')
try:
valuelist[0] = int(valuelist[0])