Django’s built-in comment model. Has the following fields:
A GenericForeignKey attribute pointing to the object the comment is attached to. You can use this to get at the related object (i.e. my_comment.content_object).
Since this field is a GenericForeignKey, it’s actually syntactic sugar on top of two underlying attributes, described below.
Jul 05, 2010