  
  
  class People(models.Model):
      name = models.CharField(max_length=255)
      parent = models.ForeignKey('self')
  
  
  class Message(models.Model):
      from_field = models.ForeignKey(People, db_column='from_id')
  
 
</s> remove     from_field = models.ForeignKey(People, db_column='from_id')
 </s> add     from_field = models.ForeignKey(People, models.CASCADE, db_column='from_id') </s> remove     people_pk = models.ForeignKey(People, primary_key=True)
 </s> add     people_pk = models.ForeignKey(People, models.CASCADE, primary_key=True) </s> remove     parent = models.ForeignKey(UUIDPKParent)
 </s> add     parent = models.ForeignKey(UUIDPKParent, models.CASCADE) </s> remove     people_unique = models.ForeignKey(People, unique=True)
 </s> add     people_unique = models.ForeignKey(People, models.CASCADE, unique=True) </s> remove     parent = models.ForeignKey(UUIDPKParent)
 </s> add     parent = models.ForeignKey(UUIDPKParent, models.CASCADE)
    parent = models.ForeignKey('self', models.CASCADE)
  
  
  class People(models.Model):
      name = models.CharField(max_length=255)
    parent = models.ForeignKey('self', models.CASCADE)
  
  
  class Message(models.Model):
      from_field = models.ForeignKey(People, db_column='from_id')
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/inspectdb/models.py