  
  
  class Member(models.Model):
      name = models.CharField(max_length=10)
      details = models.OneToOneField(Detail, primary_key=True)
  
      objects = MemberManager()
  
  
  class Child(models.Model):
 
</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     tag = models.ForeignKey(Tag)
 </s> add     tag = models.ForeignKey(Tag, models.CASCADE) </s> remove     person = models.OneToOneField(Person, primary_key=True)
 </s> add     person = models.OneToOneField(Person, models.CASCADE, primary_key=True) </s> remove     extra = models.ForeignKey(ExtraInfo)
 </s> add     extra = models.ForeignKey(ExtraInfo, models.CASCADE) </s> remove     parent = models.ForeignKey(UUIDPKParent)
 </s> add     parent = models.ForeignKey(UUIDPKParent, models.CASCADE)
    details = models.OneToOneField(Detail, models.CASCADE, primary_key=True)
  
  
  class Member(models.Model):
      name = models.CharField(max_length=10)
    details = models.OneToOneField(Detail, models.CASCADE, primary_key=True)
  
      objects = MemberManager()
  
  
  class Child(models.Model):
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