There is a problem in the middle_save. tha causes this
% python example.py runserver
Traceback (most recent call last):
File "example.py", line 212, in <module>
populate_database()
File "<string>", line 2, in populate_database
File "/Users/mac/miniconda3/envs/FPW/lib/python3.6/site-packages/pony/orm/core.py", line 413, in new_func
try: return func(*args, **kwargs)
File "example.py", line 208, in populate_database
commit()
File "<string>", line 2, in commit
File "/Users/mac/miniconda3/envs/FPW/lib/python3.6/site-packages/pony/utils/utils.py", line 58, in cut_traceback
return func(*args, **kwargs)
File "/Users/mac/miniconda3/envs/FPW/lib/python3.6/site-packages/pony/orm/core.py", line 293, in commit
cache.flush()
File "/Users/mac/miniconda3/envs/FPW/lib/python3.6/site-packages/pony/orm/core.py", line 1620, in flush
cache.call_after_save_hooks()
File "/Users/mac/miniconda3/envs/FPW/lib/python3.6/site-packages/pony/orm/core.py", line 1628, in call_after_save_hooks
obj._after_save_(status)
File "/Users/mac/Proyectos/Jona/ponywhoosh/ponywhoosh/core.py", line 203, in _middle_save_
writer.add_document(**attrs)
File "/Users/mac/miniconda3/envs/FPW/lib/python3.6/site-packages/whoosh/writing.py", line 750, in add_document
for tbytes, freq, weight, vbytes in items:
File "/Users/mac/miniconda3/envs/FPW/lib/python3.6/site-packages/whoosh/fields.py", line 669, in index
yield (self.to_bytes(num, shift), 1, 1.0, emptybytes)
File "/Users/mac/miniconda3/envs/FPW/lib/python3.6/site-packages/whoosh/fields.py", line 722, in to_bytes
x = self.prepare_number(x)
File "/Users/mac/miniconda3/envs/FPW/lib/python3.6/site-packages/whoosh/fields.py", line 685, in prepare_number
x = self.numtype(x)
ValueError: invalid literal for int() with base 10: '3.000000000'