id is the django's default AutoField with sequential surrogate id. pk is an alias for whatever primary key actually is. Meaning the current default breaks when using a custom primary key while switching to pk would not break anything but should have better compatibility.
id
is the django's default AutoField with sequential surrogate id.pk
is an alias for whatever primary key actually is. Meaning the current default breaks when using a custom primary key while switching topk
would not break anything but should have better compatibility.