          ("id", models.AutoField(primary_key=True)),
      ], {"db_table": "author_three"})
      contract = ModelState("testapp", "Contract", [
          ("id", models.AutoField(primary_key=True)),
          ("author", models.ForeignKey("testapp.Author")),
          ("publisher", models.ForeignKey("testapp.Publisher")),
      ])
      publisher = ModelState("testapp", "Publisher", [
          ("id", models.AutoField(primary_key=True)),
          ("name", models.CharField(max_length=100)),
      ])
 
</s> remove         ("author", models.ForeignKey("testapp.Author")),
 </s> add         ("author", models.ForeignKey("testapp.Author", models.CASCADE)), </s> remove         ("author", models.ForeignKey("testapp.Aardvark")),
 </s> add         ("author", models.ForeignKey("testapp.Aardvark", models.CASCADE)), </s> remove         ("author", models.ForeignKey("otherapp.Book")),
 </s> add         ("author", models.ForeignKey("otherapp.Book", models.CASCADE)), </s> remove         ("publisher", models.ForeignKey("testapp.Publisher")),
 </s> add         ("publisher", models.ForeignKey("testapp.Publisher", models.CASCADE)), </s> remove         ("book", models.ForeignKey("otherapp.Book")),
 </s> add         ("book", models.ForeignKey("otherapp.Book", models.CASCADE)),
        ("author", models.ForeignKey("testapp.Author", models.CASCADE)),
        ("publisher", models.ForeignKey("testapp.Publisher", models.CASCADE)),
          ("id", models.AutoField(primary_key=True)),
      ], {"db_table": "author_three"})
      contract = ModelState("testapp", "Contract", [
          ("id", models.AutoField(primary_key=True)),
        ("author", models.ForeignKey("testapp.Author", models.CASCADE)),
        ("publisher", models.ForeignKey("testapp.Publisher", models.CASCADE)),
        ("author", models.ForeignKey("testapp.Author", models.CASCADE)),
        ("publisher", models.ForeignKey("testapp.Publisher", models.CASCADE)),
      ])
      publisher = ModelState("testapp", "Publisher", [
          ("id", models.AutoField(primary_key=True)),
          ("name", models.CharField(max_length=100)),
      ])
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/migrations/test_autodetector.py