Fix missing PK field

https://github.com/django/django/commit/3aad955ea8db1592fad0012155eaa25b72e50dc5