Python to JSON Serialization fails on Decimal

When we have a managed = False class and a not automatic id field the autocomplete fails to decode to json the new decimal primary key.