          ordering = ['name', 'extra']
  
  
  class Related(models.Model):
      custom = models.ForeignKey(CustomPk)
  
  
  class CustomPkTag(models.Model):
      id = models.CharField(max_length=20, primary_key=True)
      custom_pk = models.ManyToManyField(CustomPk)
 
</s> remove     related_obj = models.ForeignKey('Related', on_delete=models.CASCADE)
 </s> add     related_obj = models.ForeignKey('Related', models.CASCADE) </s> remove     details = models.OneToOneField(Detail, primary_key=True)
 </s> add     details = models.OneToOneField(Detail, models.CASCADE, primary_key=True) </s> remove     person = models.OneToOneField(Member, primary_key=True)
    parent = models.ForeignKey(Member, related_name="children")
 </s> add     person = models.OneToOneField(Member, models.CASCADE, primary_key=True)
    parent = models.ForeignKey(Member, models.CASCADE, related_name="children") </s> remove     person = models.ForeignKey(Person, primary_key=True)
 </s> add     person = models.ForeignKey(Person, models.CASCADE, primary_key=True) </s> remove     person = models.OneToOneField(Person, primary_key=True)
 </s> add     person = models.OneToOneField(Person, models.CASCADE, primary_key=True)
    custom = models.ForeignKey(CustomPk, models.CASCADE)
          ordering = ['name', 'extra']
  
  
  class Related(models.Model):
    custom = models.ForeignKey(CustomPk, models.CASCADE)
  
  
  class CustomPkTag(models.Model):
      id = models.CharField(max_length=20, primary_key=True)
      custom_pk = models.ManyToManyField(CustomPk)
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/queries/models.py