diff options
| author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-24 16:56:05 +0200 | 
|---|---|---|
| committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-10-24 17:03:13 +0200 | 
| commit | d7fae5dcfc62d81e44e634ffbf35d9f4aa2577ab (patch) | |
| tree | d14a6fd1254ad6599551db9f36e18d349901a390 | |
| parent | 6d15ed3cb930972f81457de2969e8f20bfb08960 (diff) | |
| download | Ishtar-d7fae5dcfc62d81e44e634ffbf35d9f4aa2577ab.tar.bz2 Ishtar-d7fae5dcfc62d81e44e634ffbf35d9f4aa2577ab.zip | |
Admin - CSV import: fix float conversion
| -rw-r--r-- | ishtar_common/admin.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/ishtar_common/admin.py b/ishtar_common/admin.py index 7c5d505b3..b2a3f399e 100644 --- a/ishtar_common/admin.py +++ b/ishtar_common/admin.py @@ -322,7 +322,7 @@ class ImportActionAdmin(admin.ModelAdmin):                              if not value:                                  value = None                              else: -                                value = value(value) +                                value = float(value)                          elif isinstance(field, BooleanField):                              if value in ('true', 'True', '1'):                                  value = True | 
