diff --git a/django/contrib/comments/models.py b/django/contrib/comments/models.py
index 7dd4f81..114b115 100644
a
|
b
|
from django.db import models
|
8 | 8 | from django.core import urlresolvers |
9 | 9 | from django.utils.translation import ugettext_lazy as _ |
10 | 10 | from django.conf import settings |
| 11 | from django.contrib import comments |
11 | 12 | |
12 | 13 | COMMENT_MAX_LENGTH = getattr(settings,'COMMENT_MAX_LENGTH',3000) |
13 | 14 | |
… |
… |
class CommentFlag(models.Model):
|
166 | 167 | if you want rating look elsewhere. |
167 | 168 | """ |
168 | 169 | user = models.ForeignKey(User, verbose_name=_('user'), related_name="comment_flags") |
169 | | comment = models.ForeignKey(Comment, verbose_name=_('comment'), related_name="flags") |
| 170 | comment = models.ForeignKey(comments.get_model(), verbose_name=_('comment'), related_name="flags") |
170 | 171 | flag = models.CharField(_('flag'), max_length=30, db_index=True) |
171 | 172 | flag_date = models.DateTimeField(_('date'), default=None) |
172 | 173 | |