show id_column only if Model has a primary_key

fixes #3288