      authors = models.ManyToManyField(Author, through='AuthorsBooks')
  
  
  class AuthorsBooks(models.Model):
      author = models.ForeignKey(Author)
      book = models.ForeignKey(Book)
      featured = models.BooleanField()
  
  
  class State(models.Model):
      name = models.CharField(max_length=15)
 
</s> remove     author = models.ForeignKey(Author)
 </s> add     author = models.ForeignKey(Author, models.CASCADE) </s> remove     publisher = models.ForeignKey(Publisher, related_name='books', db_column="publisher_id_column")
 </s> add     publisher = models.ForeignKey(
        Publisher,
        models.CASCADE,
        related_name='books',
        db_column="publisher_id_column",
    ) </s> remove     author = models.ForeignKey(Author)
 </s> add     author = models.ForeignKey(Author, models.CASCADE) </s> remove     author = models.ForeignKey(Author)
 </s> add     author = models.ForeignKey(Author, models.CASCADE) </s> remove     author = models.ForeignKey(Author)
 </s> add     author = models.ForeignKey(Author, models.CASCADE)
    author = models.ForeignKey(Author, models.CASCADE)
    book = models.ForeignKey(Book, models.CASCADE)
      authors = models.ManyToManyField(Author, through='AuthorsBooks')
  
  
  class AuthorsBooks(models.Model):
    author = models.ForeignKey(Author, models.CASCADE)
    book = models.ForeignKey(Book, models.CASCADE)
    author = models.ForeignKey(Author, models.CASCADE)
    book = models.ForeignKey(Book, models.CASCADE)
      featured = models.BooleanField()
  
  
  class State(models.Model):
      name = models.CharField(max_length=15)
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/admin_checks/models.py