          return '/dummy/%s/' % self.pk
  
  
  class Worker(models.Model):
      work_at = models.ForeignKey(Restaurant)
      name = models.CharField(max_length=50)
      surname = models.CharField(max_length=50)
  
  
  # Models for #23329
 
</s> remove     city = models.ForeignKey(City)
 </s> add     city = models.ForeignKey(City, models.CASCADE) </s> remove     state = models.ForeignKey(State)
 </s> add     state = models.ForeignKey(State, models.CASCADE) </s> remove         restaurant = models.ForeignKey(Restaurant)
 </s> add         restaurant = models.ForeignKey(Restaurant, on_delete=models.CASCADE) </s> remove     restaurant = models.ForeignKey(Restaurant)
 </s> add     restaurant = models.ForeignKey(Restaurant, models.CASCADE) </s> remove     restaurant = models.ForeignKey(Restaurant)
 </s> add     restaurant = models.ForeignKey(Restaurant, models.CASCADE)
    work_at = models.ForeignKey(Restaurant, models.CASCADE)
          return '/dummy/%s/' % self.pk
  
  
  class Worker(models.Model):
    work_at = models.ForeignKey(Restaurant, models.CASCADE)
      name = models.CharField(max_length=50)
      surname = models.CharField(max_length=50)
  
  
  # Models for #23329
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