Ticket #9429: 9429.diff

File 9429.diff, 541 bytes (added by Thejaswi Puthraya, 15 years ago)

git-patch against latest checkout

  • django/contrib/comments/models.py

    diff --git a/django/contrib/comments/models.py b/django/contrib/comments/models.py
    index c0613dc..56642b2 100644
    a b class Comment(BaseCommentAbstractModel):  
    140140        Return this comment as plain text.  Useful for emails.
    141141        """
    142142        d = {
    143             'user': self.user,
     143            'user': self.user or self.name,
    144144            'date': self.submit_date,
    145145            'comment': self.comment,
    146146            'domain': self.site.domain,
Back to Top