Added code to alias ->id into whatever value is set for ->pk in model