I'm trying to load data from a json file to my database. It works fine in sqlite... but in Postgresql I get the error: IntegrityError: Could not load jobs.JobStep(pk=None): null value in column "id" violates not-null constraint And I'm getting this error for all the tables that I don't provide the pk
The pk is null, but in this case Django shouldn't generate the pk? Here's the json simplified: http://pastebin.com/xzYizcES
The model(s): http://pastebin.com/pn8YFz0u
As you can see the model inherits from another model... I thought that could be the problem, but if I only change the pk value of JobStep from null to a valid number... it works.
Anyone has any idea?