Recreate bug - id is serialised as a string not as an integer as expected

Hey guys,

I've recreated some behaviour in this test that I found unexpected - serialising a string attribute of an object (not a model) using an IntegerField results in a string not an integer.

Am I correct in thinking that this should be outputting an integer? Any ideas on what's going wrong or where I could start looking?

Cheers,