      aardvark = ModelState("thirdapp", "Aardvark", [("id", models.AutoField(primary_key=True))])
      aardvark_testapp = ModelState("testapp", "Aardvark", [("id", models.AutoField(primary_key=True))])
      aardvark_based_on_author = ModelState("testapp", "Aardvark", [], bases=("testapp.Author", ))
      aardvark_pk_fk_author = ModelState("testapp", "Aardvark", [
          ("id", models.OneToOneField("testapp.Author", primary_key=True)),
      ])
      knight = ModelState("eggs", "Knight", [("id", models.AutoField(primary_key=True))])
      rabbit = ModelState("eggs", "Rabbit", [
          ("id", models.AutoField(primary_key=True)),
          ("knight", models.ForeignKey("eggs.Knight")),
 
</s> remove         ("knight", models.ForeignKey("eggs.Knight")),
        ("parent", models.ForeignKey("eggs.Rabbit")),
 </s> add         ("knight", models.ForeignKey("eggs.Knight", models.CASCADE)),
        ("parent", models.ForeignKey("eggs.Rabbit", models.CASCADE)), </s> remove         ("author", models.ForeignKey("testapp.Author")),
 </s> add         ("author", models.ForeignKey("testapp.Author", models.CASCADE)), </s> remove         ("user", models.ForeignKey("thirdapp.CustomUser")),
 </s> add         ("user", models.ForeignKey("thirdapp.CustomUser", models.CASCADE)), </s> remove         ("author", models.ForeignKey("testapp.Author")),
 </s> add         ("author", models.ForeignKey("testapp.Author", models.CASCADE)), </s> remove         ("book", models.ForeignKey("otherapp.Book")),
 </s> add         ("book", models.ForeignKey("otherapp.Book", models.CASCADE)),
        ("id", models.OneToOneField("testapp.Author", models.CASCADE, primary_key=True)),
      aardvark = ModelState("thirdapp", "Aardvark", [("id", models.AutoField(primary_key=True))])
      aardvark_testapp = ModelState("testapp", "Aardvark", [("id", models.AutoField(primary_key=True))])
      aardvark_based_on_author = ModelState("testapp", "Aardvark", [], bases=("testapp.Author", ))
      aardvark_pk_fk_author = ModelState("testapp", "Aardvark", [
        ("id", models.OneToOneField("testapp.Author", models.CASCADE, primary_key=True)),
      ])
      knight = ModelState("eggs", "Knight", [("id", models.AutoField(primary_key=True))])
      rabbit = ModelState("eggs", "Rabbit", [
          ("id", models.AutoField(primary_key=True)),
          ("knight", models.ForeignKey("eggs.Knight")),
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