          ordering = ('name',)
  
  
  class Song(models.Model):
      band = models.ForeignKey(Band)
      name = models.CharField(max_length=100)
      duration = models.IntegerField()
      other_interpreters = models.ManyToManyField(Band, related_name='covers')
  
      class Meta:
 
</s> remove     band = models.ForeignKey(Band)
 </s> add     band = models.ForeignKey(Band, models.CASCADE) </s> remove     album = models.ForeignKey(Album)
 </s> add     album = models.ForeignKey(Album, models.CASCADE) </s> remove     contact = models.ForeignKey(Author, related_name='book_contact_set')
    publisher = models.ForeignKey(Publisher)
 </s> add     contact = models.ForeignKey(Author, models.CASCADE, related_name='book_contact_set')
    publisher = models.ForeignKey(Publisher, models.CASCADE) </s> remove             question = models.ForeignKey(Question)
 </s> add             question = models.ForeignKey(Question, models.CASCADE) </s> remove             band = UnsavedForeignKey(Band)
 </s> add             band = UnsavedForeignKey(Band, models.CASCADE)
    band = models.ForeignKey(Band, models.CASCADE)
          ordering = ('name',)
  
  
  class Song(models.Model):
    band = models.ForeignKey(Band, models.CASCADE)
      name = models.CharField(max_length=100)
      duration = models.IntegerField()
      other_interpreters = models.ManyToManyField(Band, related_name='covers')
  
      class Meta:
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/admin_ordering/models.py