make integerforeignkey tolerate strings