Handle inline forms for Django 1.6.

It looks like has_auto_field got replaced with needs_explicit_pk_field for this ticket: https://code.djangoproject.com/ticket/13696. This changeset should be backwards compatible.