  
  
  @python_2_unicode_compatible
  class Category(models.Model):
      collector = models.ForeignKey(Collector)
      order = models.PositiveIntegerField()
  
      class Meta:
          ordering = ('order',)
  
 
</s> remove     owner = models.ForeignKey(Collector)
 </s> add     owner = models.ForeignKey(Collector, models.CASCADE) </s> remove             question = models.ForeignKey(Question)
 </s> add             question = models.ForeignKey(Question, models.CASCADE) </s> remove     x = models.ForeignKey(LoopX)
 </s> add     x = models.ForeignKey(LoopX, models.CASCADE) </s> remove     b = models.ForeignKey(B)
 </s> add     b = models.ForeignKey(B, models.CASCADE) </s> remove     z = models.ForeignKey('self')
 </s> add     z = models.ForeignKey('self', models.CASCADE)
    collector = models.ForeignKey(Collector, models.CASCADE)
  
  
  @python_2_unicode_compatible
  class Category(models.Model):
    collector = models.ForeignKey(Collector, models.CASCADE)
      order = models.PositiveIntegerField()
  
      class Meta:
          ordering = ('order',)
  
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