summaryrefslogtreecommitdiff
path: root/ishtar_common/forms.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-16 12:30:44 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-05-16 12:30:44 +0200
commita4c8f7d6af91d1d756897c61e484c3ea577024d5 (patch)
tree3e94b4b8fddda4fdf6f021cf11fbbc1f9d9a5e13 /ishtar_common/forms.py
parentcba39126fdf90bbe10f523fa185d33c90ca18593 (diff)
parent746cc873bec6b10a9c22fdf7e946928c6d3fd822 (diff)
downloadIshtar-a4c8f7d6af91d1d756897c61e484c3ea577024d5.tar.bz2
Ishtar-a4c8f7d6af91d1d756897c61e484c3ea577024d5.zip
Merge branch 'v0.9' into wheezy
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 ecae18c5e..7eb36f6cc 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)