      ])
      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")),
          ("parent", models.ForeignKey("eggs.Rabbit")),
      ], {"unique_together": {("parent", "knight")}})
  
      def repr_changes(self, changes, include_dependencies=False):
          output = ""
          for app_label, migrations in sorted(changes.items()):
 
</s> remove         ("id", models.OneToOneField("testapp.Author", primary_key=True)),
 </s> add         ("id", models.OneToOneField("testapp.Author", models.CASCADE, primary_key=True)), </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)), </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)),
        ("knight", models.ForeignKey("eggs.Knight", models.CASCADE)),
        ("parent", models.ForeignKey("eggs.Rabbit", models.CASCADE)),
      ])
      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", models.CASCADE)),
        ("parent", models.ForeignKey("eggs.Rabbit", models.CASCADE)),
        ("knight", models.ForeignKey("eggs.Knight", models.CASCADE)),
        ("parent", models.ForeignKey("eggs.Rabbit", models.CASCADE)),
      ], {"unique_together": {("parent", "knight")}})
  
      def repr_changes(self, changes, include_dependencies=False):
          output = ""
          for app_label, migrations in sorted(changes.items()):
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