diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-16 12:27:34 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2017-05-16 12:27:34 +0200 |
commit | 8d9998014f3d7591f073dea645e3eee40b4917e6 (patch) | |
tree | 6bb5b6aa22d1720b8eb2dc26766dcad9dda1544d /ishtar_common/forms.py | |
parent | dfd6fd2551a9cc54e6b69d4f5d4d4aa328b9cc7a (diff) | |
parent | a25d54c314692843a0086f6c7f9d38c30affce40 (diff) | |
download | Ishtar-8d9998014f3d7591f073dea645e3eee40b4917e6.tar.bz2 Ishtar-8d9998014f3d7591f073dea645e3eee40b4917e6.zip |
Merge branch 'master' into v0.9
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r-- | ishtar_common/forms.py | 2 |
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) |