pombreda / djapian

Automatically exported from code.google.com/p/djapian
Other
0 stars 0 forks source link

fails to index FloatField=None #87

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a model with the field:
p=models.FloatField(null=True,blank=True)
that is a float but that can also be undefined...
when indexing with djapian I get this error:
  File "/usr/local/lib/python2.6/dist-packages/djapian/indexer.py", line
55, in convert
    value = '%.10f' % value
TypeError: float argument required, not NoneType

Original issue reported on code.google.com by sforne...@gmail.com on 4 Oct 2009 at 8:04

GoogleCodeExporter commented 9 years ago

Original comment by daevaorn on 4 Oct 2009 at 8:17

GoogleCodeExporter commented 9 years ago
Fixed with r301.

Original comment by daevaorn on 10 Oct 2009 at 7:02