  
  
  @python_2_unicode_compatible
  class Comment(models.Model):
      article = models.ForeignKey(Article, related_name="comments")
      text = models.TextField()
      pub_date = models.DateField()
      approval_date = models.DateField(null=True)
  
      def __str__(self):
 
</s> remove     article = models.ForeignKey(Article, related_name="comments")
 </s> add     article = models.ForeignKey(Article, models.CASCADE, related_name="comments") </s> remove     article = models.ForeignKey('indexes.Article')
 </s> add     article = models.ForeignKey('indexes.Article', models.CASCADE) </s> remove     content_type = models.ForeignKey(ContentType)
 </s> add     content_type = models.ForeignKey(ContentType, models.CASCADE) </s> remove     reporter = models.ForeignKey(Reporter)
    reporter_proxy = models.ForeignKey(ReporterProxy, null=True,
                                       related_name='reporter_proxy')
 </s> add     reporter = models.ForeignKey(Reporter, models.CASCADE)
    reporter_proxy = models.ForeignKey(
        ReporterProxy,
        models.SET_NULL,
        null=True,
        related_name='reporter_proxy',
    ) </s> remove     reporter = models.ForeignKey(Reporter)
    response_to = models.ForeignKey('self', null=True)
 </s> add     reporter = models.ForeignKey(Reporter, models.CASCADE)
    response_to = models.ForeignKey('self', models.SET_NULL, null=True)
    article = models.ForeignKey(Article, models.CASCADE, related_name="comments")
  
  
  @python_2_unicode_compatible
  class Comment(models.Model):
    article = models.ForeignKey(Article, models.CASCADE, related_name="comments")
      text = models.TextField()
      pub_date = models.DateField()
      approval_date = models.DateField(null=True)
  
      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/dates/models.py