  
      class Meta:
          app_label = 'not_installed'
  
      not_installed = models.ForeignKey(NotInstalledModel)
  
  
  class M2MRelatedModel(models.Model):
  
      class Meta:
 
</s> remove             parent = models.ForeignKey(Parent)
 </s> add             parent = models.ForeignKey(Parent, models.CASCADE) </s> remove     item = models.ForeignKey(Item)
 </s> add     item = models.ForeignKey(Item, models.CASCADE) </s> remove             question = models.ForeignKey(Question)
 </s> add             question = models.ForeignKey(Question, models.CASCADE) </s> remove     z = models.ForeignKey('self')
 </s> add     z = models.ForeignKey('self', models.CASCADE) </s> remove     x = models.ForeignKey(LoopX)
 </s> add     x = models.ForeignKey(LoopX, models.CASCADE)
    not_installed = models.ForeignKey(NotInstalledModel, models.CASCADE)
  
      class Meta:
          app_label = 'not_installed'
  
    not_installed = models.ForeignKey(NotInstalledModel, models.CASCADE)
  
  
  class M2MRelatedModel(models.Model):
  
      class Meta:
keep keep keep keep replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/app_loading/not_installed/models.py