If you do not add a primarykey explicitly django will create a field `id`
for you by default.
Normally this is an autoincrement integer.
see
https://docs.djangoproject.com/en/2.1/topics/db/models/#automatic-primary-key-fields
You may name your primary key field to whatever you want.
`pk` is an al
I want to know, what is main difference between pk and id on django.
Would appreciate if any one could help me.
Thanks
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an emai
2 matches
Mail list logo