Fixed get_pk_input and get_m2m_input for app_name