summaryrefslogtreecommitdiff
path: root/ishtar_common/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-15 11:34:32 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-15 11:34:32 +0200
commit209a201cd920692b9d7f3f33b42cc56d3bb27a1f (patch)
tree9b6101e1df20be739157df2c8d6f391119bf3e48 /ishtar_common/forms.py
parentc700b1b3d023b62d24015897df66e0bfd7f35893 (diff)
parent1fb316c83fb50b3884c29a44cb95b2383a1a35bd (diff)
downloadIshtar-209a201cd920692b9d7f3f33b42cc56d3bb27a1f.tar.bz2
Ishtar-209a201cd920692b9d7f3f33b42cc56d3bb27a1f.zip
Merge branch 'master' into develop
Conflicts: archaeological_finds/forms_treatments.py
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r--ishtar_common/forms.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py
index 00f39e625..4e5a8bd1c 100644
--- a/ishtar_common/forms.py
+++ b/ishtar_common/forms.py
@@ -80,7 +80,7 @@ class FloatField(forms.FloatField):
Allow the use of comma for separating float fields
"""
def clean(self, value):
- if value:
+ if value and (isinstance(value, unicode) or isinstance(value, str)):
value = value.replace(',', '.').replace('%', '')
return super(FloatField, self).clean(value)