Ticket #9563: comments.patch

File comments.patch, 1.1 KB (added by mapleoin, 6 years ago)

comments framework documentation patch

  • docs/ref/contrib/comments/index.txt

     
    100100        ...
    101101    {% endfor %}
    102102
     103Here are some of the attributes you can use with the ``comment``:
     104
     105    ``{{ comment.user_name }}``
     106    :class:`CharField`, max_length=50, blank=True
     107
     108    ``{{ comment.user_email }}``
     109    :class:`EmailField`, blank=True
     110
     111    ``{{ comment.user_url }}``
     112    :class:`URLField`, blank=True
     113
     114    ``{{ comment.submit_date }}``
     115    :class:`DateTimeField`, default=None
     116
     117    ``{{ comment.ip_address }}``
     118    :class:`IPAddressField`, blank=True, null=True
     119
     120    ``{{ comment.is_public }}``
     121    Make the comment visible on the site.
     122    :class:`BooleanField`, default=True
     123
     124    ``{{ comment.is_removed }}``
     125    Use if the comment has been deemed inappropriate. A `This comment has been removed` message will be displayed instead.
     126    :class:`BooleanField`, default=False
     127
    103128.. templatetag:: get_comment_count
    104129
    105130Counting comments
Back to Top