Source

cmsplugin_comments / cmsplugin_comments / models.py

from django.contrib.comments.models import Comment
from django.db import models
from django.utils.translation import ugettext as _
from cms.models import CMSPlugin

class Discussion (models.Model):
    title = models.CharField(_('Title'), max_length=128)

    def __unicode__(self):
        return self.title

class DiscussionPlugin(CMSPlugin):
    discussion = models.ForeignKey(Discussion)