Change the unique constraint error to forward the model and pk.