First of all, I'm not sure about it, but out of curiosity Isn't it that* InternalError: (1048, u"Column 'country_id' cannot be null") *caused by trying to insert something into table w/o giving a value to country_id field??? A primary field cannot be empty.
forget, if I'm wrong in my assumptions.

