  
  @python_2_unicode_compatible
  class Cover(models.Model):
      title = models.CharField(max_length=50)
      item = models.ForeignKey(Item)
  
      class Meta:
          ordering = ['item']
  
      def __str__(self):
 
</s> remove     item = models.ForeignKey(Item)
 </s> add     item = models.ForeignKey(Item, models.CASCADE) </s> remove     item = models.OneToOneField(Item, related_name="one_to_one_item")
 </s> add     item = models.OneToOneField(Item, models.CASCADE, related_name="one_to_one_item") </s> remove     item = models.ForeignKey(Item)
    simple = models.ForeignKey(SimpleItem)
 </s> add     item = models.ForeignKey(Item, models.CASCADE)
    simple = models.ForeignKey(SimpleItem, models.CASCADE) </s> remove     title = models.ForeignKey(Title, related_name='attached_%(app_label)s_%(class)s_set')
 </s> add     title = models.ForeignKey(Title, models.CASCADE, related_name='attached_%(app_label)s_%(class)s_set') </s> remove     album = models.ForeignKey(Album)
 </s> add     album = models.ForeignKey(Album, models.CASCADE)
    item = models.ForeignKey(Item, models.CASCADE)
  
  @python_2_unicode_compatible
  class Cover(models.Model):
      title = models.CharField(max_length=50)
    item = models.ForeignKey(Item, models.CASCADE)
  
      class Meta:
          ordering = ['item']
  
      def __str__(self):
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