      age = models.IntegerField()
  
  
  class FavoriteAuthors(models.Model):
      author = models.ForeignKey(Author, to_field='name', related_name='i_like')
      likes_author = models.ForeignKey(Author, to_field='name', related_name='likes_me')
  
      class Meta:
          ordering = ['id']
  
  
 
</s> remove     author = models.OneToOneField(Author, parent_link=True)
 </s> add     author = models.OneToOneField(Author, models.CASCADE, parent_link=True) </s> remove     author = models.ForeignKey(Author, to_field='name', related_name='addresses')
 </s> add     author = models.ForeignKey(Author, models.CASCADE, to_field='name', related_name='addresses') </s> remove     author = models.ForeignKey(Author, related_name='fans')
 </s> add     author = models.ForeignKey(Author, models.CASCADE, related_name='fans') </s> remove     author = models.ForeignKey(Author)
 </s> add     author = models.ForeignKey(Author, models.CASCADE) </s> remove     author = models.ForeignKey(Author, unique=True)
 </s> add     author = models.ForeignKey(Author, models.CASCADE, unique=True)
    author = models.ForeignKey(Author, models.CASCADE, to_field='name', related_name='i_like')
    likes_author = models.ForeignKey(Author, models.CASCADE, to_field='name', related_name='likes_me')
      age = models.IntegerField()
  
  
  class FavoriteAuthors(models.Model):
    author = models.ForeignKey(Author, models.CASCADE, to_field='name', related_name='i_like')
    likes_author = models.ForeignKey(Author, models.CASCADE, to_field='name', related_name='likes_me')
    author = models.ForeignKey(Author, models.CASCADE, to_field='name', related_name='i_like')
    likes_author = models.ForeignKey(Author, models.CASCADE, to_field='name', related_name='likes_me')
  
      class Meta:
          ordering = ['id']
  
  
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/prefetch_related/models.py