Add Django 1.6b4 compatibility for inline templates
by using needs_explicit_pk_field if the older
has_auto_field method is missing.