django/django — pull request #2840 by korfuri (2014-06-22 02:40:49+00:00)
Title: Do not hardcode the primary key field name in admin's initial migration.

This enables users of django admin to use custom user models (configured through settings.AUTH_USER_MODEL) using a primary key with a name different from 'id' (use case: 'email' or 'login' are common natural primary keys).

It's not necessary to include the field name, the default behavior of models.ForeignKey is to look up the primary key field name from the target model.