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
commit54d6c8789255aa5500df6dc583a8fdbe96b8442a (patch)
tree9b6101e1df20be739157df2c8d6f391119bf3e48 /ishtar_common/forms.py
parentc3e4c309deb686685e34a441445b6104ba4913a7 (diff)
parentc18fccf766ea9fd82ca82d8e4a7938c83512c416 (diff)
downloadIshtar-54d6c8789255aa5500df6dc583a8fdbe96b8442a.tar.bz2
Ishtar-54d6c8789255aa5500df6dc583a8fdbe96b8442a.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)