getting pk from model