A non-unique primary key allows the same value to be used for multiple records thus multiple results could be returned for
A primary key is used to uniquely identify each record in the Model's database table.
primary_key=True denotes the field is the primary key for the model.
primary_key=True implies null=False and unique=True.
If we spot this issue in your GitHub pull request we give this advice:
Django Doctor will run this check by default. No configuration is needed but the check can be turned on/off using check code
non-unique-primary in your pyproject.toml file.