coleifer/peewee — pull request #430 by alexlatchford (2014-09-16 00:46:27+00:00)
Title: Cast to db_value for insert queries

I was getting problems with foreign key fields not being cast properly, looks like this is the solution. It's not well tested so you might want to have a play yourself before accepting.

Thanks,
Alex