      pass
  
  
  class Fan(models.Model):
      fan_of = models.ForeignKey(Celebrity)
  
  # Multiple foreign keys
  
  
  @python_2_unicode_compatible
 
</s> remove     author = models.ForeignKey(Author, related_name='fans')
 </s> add     author = models.ForeignKey(Author, models.CASCADE, related_name='fans') </s> remove         person = models.ForeignKey(Person)
        group = models.ForeignKey(Group)
 </s> add         person = models.ForeignKey(Person, on_delete=models.CASCADE)
        group = models.ForeignKey(Group, on_delete=models.CASCADE) </s> remove     person = models.OneToOneField(Member, primary_key=True)
    parent = models.ForeignKey(Member, related_name="children")
 </s> add     person = models.OneToOneField(Member, models.CASCADE, primary_key=True)
    parent = models.ForeignKey(Member, models.CASCADE, related_name="children") </s> remove     state = models.ForeignKey(State)
 </s> add     state = models.ForeignKey(State, models.CASCADE) </s> remove     a1 = models.ForeignKey('lookuperror_a.A1')
 </s> add     a1 = models.ForeignKey('lookuperror_a.A1', models.CASCADE)
    fan_of = models.ForeignKey(Celebrity, models.CASCADE)
      pass
  
  
  class Fan(models.Model):
    fan_of = models.ForeignKey(Celebrity, models.CASCADE)
  
  # Multiple foreign keys
  
  
  @python_2_unicode_compatible
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/queries/models.py