I am trying to put infinity in a FloatField, but that doesn't seem to work. How do I solve this?
f = DjangoModel(float_value=float('inf')) #ok
f.save() #crashes
Results in:
Traceback (most recent call last):
...
ProgrammingError: column "inf" does not exist
LINE 1: ... "float_value") VALUES (inf)
I'm using Django 1.0.2 with PostgreSQL 8.3