fix Model.__init__() construct for models with a foreignkey in the priramy key