      name = models.CharField(max_length=10)
      created = models.DateTimeField()
      modified = models.DateTimeField(blank=True, null=True)
      tags = models.ManyToManyField(Tag, blank=True)
      creator = models.ForeignKey(Author)
      note = models.ForeignKey(Note)
  
      class Meta:
          ordering = ['-note', 'name']
  
      def __str__(self):
 
</s> remove     note = models.ForeignKey(Note)
 </s> add     note = models.ForeignKey(Note, models.CASCADE) </s> remove     creator = models.ForeignKey(Author, to_field='num', null=True)
 </s> add     creator = models.ForeignKey(Author, models.SET_NULL, to_field='num', null=True) </s> remove     extra = models.ForeignKey(ExtraInfo)
 </s> add     extra = models.ForeignKey(ExtraInfo, models.CASCADE) </s> remove     author = models.ForeignKey(Author)
 </s> add     author = models.ForeignKey(Author, models.CASCADE) </s> remove     reporter = models.ForeignKey(Reporter, null=True)
 </s> add     reporter = models.ForeignKey(Reporter, models.SET_NULL, null=True)
    creator = models.ForeignKey(Author, models.CASCADE)
    note = models.ForeignKey(Note, models.CASCADE)
      name = models.CharField(max_length=10)
      created = models.DateTimeField()
      modified = models.DateTimeField(blank=True, null=True)
      tags = models.ManyToManyField(Tag, blank=True)
    creator = models.ForeignKey(Author, models.CASCADE)
    note = models.ForeignKey(Note, models.CASCADE)
    creator = models.ForeignKey(Author, models.CASCADE)
    note = models.ForeignKey(Note, models.CASCADE)
  
      class Meta:
          ordering = ['-note', 'name']
  
      def __str__(self):
keep keep keep keep replace replace keep keep keep keep keep
 Fixed #21127 -- Started deprecation toward requiring on_delete for ForeignKey/OneToOneField 
tests/queries/models.py