The built-in comment models¶
Django’s comment framework has been deprecated and is no longer supported. Most users will be better served with a custom solution, or a hosted product like Disqus.
The code formerly known as
django.contrib.comments is still available
in an external repository.
Django’s built-in comment model. Has the following fields:
GenericForeignKeyattribute pointing to the object the comment is attached to. You can use this to get at the related object (i.e.
Since this field is a
GenericForeignKey, it’s actually syntactic sugar on top of two underlying attributes, described below.
The name of the user who posted the comment.
The email of the user who posted the comment.
The URL entered by the person who posted the comment.
The actual content of the comment itself.
The date the comment was submitted.
The IP address of the user posting the comment.
Falseif the comment is in moderation (see Generic comment moderation); If
True, the comment will be displayed on the site.
Trueif the comment was removed. Used to keep track of removed comments instead of just deleting them.