              ]),
              ModelState("testapp", "EntityB", [
                  ("id", models.AutoField(primary_key=True)),
                  ("some_label", models.CharField(max_length=255)),
                  ("entity_a", models.ForeignKey("testapp.EntityA")),
              ]),
          ])
          after = self.make_project_state([
              ModelState("testapp", "EntityA", [
                  ("id", models.AutoField(primary_key=True)),
 
</s> remove         ("author", models.ForeignKey("testapp.Author")),
        ("publisher", models.ForeignKey("testapp.Publisher")),
 </s> add         ("author", models.ForeignKey("testapp.Author", models.CASCADE)),
        ("publisher", models.ForeignKey("testapp.Publisher", models.CASCADE)), </s> remove         ("book", models.ForeignKey("otherapp.Book")),
 </s> add         ("book", models.ForeignKey("otherapp.Book", models.CASCADE)), </s> remove         ("publisher", models.ForeignKey("testapp.Publisher")),
 </s> add         ("publisher", models.ForeignKey("testapp.Publisher", models.CASCADE)), </s> remove         ("user", models.ForeignKey("auth.User")),
 </s> add         ("user", models.ForeignKey("auth.User", models.CASCADE)), </s> remove         ("author", models.ForeignKey("testapp.Aardvark")),
 </s> add         ("author", models.ForeignKey("testapp.Aardvark", models.CASCADE)),
                ("entity_a", models.ForeignKey("testapp.EntityA", models.CASCADE)),
              ]),
              ModelState("testapp", "EntityB", [
                  ("id", models.AutoField(primary_key=True)),
                  ("some_label", models.CharField(max_length=255)),
                ("entity_a", models.ForeignKey("testapp.EntityA", models.CASCADE)),
              ]),
          ])
          after = self.make_project_state([
              ModelState("testapp", "EntityA", [
                  ("id", models.AutoField(primary_key=True)),
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/migrations/test_autodetector.py