Fix compatibility for django < 1.6 by check has_auto_field and needs_explicit_pk_field
Use consistent name 'inline-item' in each inline layout