  
  @python_2_unicode_compatible
  class Inquisition(models.Model):
      expected = models.BooleanField(default=False)
      leader = models.ForeignKey(Actor)
      country = models.CharField(max_length=20)
  
      def __str__(self):
          return "by %s from %s" % (self.leader, self.country)
  
 
</s> remove     country = models.ForeignKey(Country)
 </s> add     country = models.ForeignKey(Country, models.CASCADE) </s> remove     owner = models.ForeignKey(User)
 </s> add     owner = models.ForeignKey(User, models.CASCADE) </s> remove     store = models.ForeignKey(Store)
 </s> add     store = models.ForeignKey(Store, models.CASCADE) </s> remove     question = models.ForeignKey(Question, on_delete=models.PROTECT)
 </s> add     question = models.ForeignKey(Question, models.PROTECT) </s> remove         restaurant = models.ForeignKey(Restaurant)
 </s> add         restaurant = models.ForeignKey(Restaurant, on_delete=models.CASCADE)
    leader = models.ForeignKey(Actor, models.CASCADE)
  
  @python_2_unicode_compatible
  class Inquisition(models.Model):
      expected = models.BooleanField(default=False)
    leader = models.ForeignKey(Actor, models.CASCADE)
      country = models.CharField(max_length=20)
  
      def __str__(self):
          return "by %s from %s" % (self.leader, self.country)
  
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/admin_views/models.py