[1.4.x] Fixed #19824 - Corrected the class described for Field.primary_key from IntegerField to AutoField.

Thanks Keryn Knight.

Backport of 218bbef0c4 from master