summaryrefslogtreecommitdiff
path: root/app/lib/django_comments/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/django_comments/models.py')
-rw-r--r--app/lib/django_comments/models.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/app/lib/django_comments/models.py b/app/lib/django_comments/models.py
index 204cf2e..fdae25d 100644
--- a/app/lib/django_comments/models.py
+++ b/app/lib/django_comments/models.py
@@ -2,7 +2,6 @@ from six import python_2_unicode_compatible
from django.conf import settings
from django.db import models
from django.utils import timezone
-from django.utils.translation import ugettext_lazy as _
from .abstracts import (
COMMENT_MAX_LENGTH, BaseCommentAbstractModel, CommentAbstractModel,
@@ -29,16 +28,16 @@ class CommentFlag(models.Model):
if you want rating look elsewhere.
"""
user = models.ForeignKey(
- settings.AUTH_USER_MODEL, verbose_name=_('user'), related_name="comment_flags",
+ settings.AUTH_USER_MODEL, verbose_name=('user'), related_name="comment_flags",
on_delete=models.CASCADE,
)
comment = models.ForeignKey(
# Translators: 'comment' is a noun here.
- Comment, verbose_name=_('comment'), related_name="flags", on_delete=models.CASCADE,
+ Comment, verbose_name=('comment'), related_name="flags", on_delete=models.CASCADE,
)
# Translators: 'flag' is a noun here.
- flag = models.CharField(_('flag'), max_length=30, db_index=True)
- flag_date = models.DateTimeField(_('date'), default=None)
+ flag = models.CharField(('flag'), max_length=30, db_index=True)
+ flag_date = models.DateTimeField(('date'), default=None)
# Constants for flag types
SUGGEST_REMOVAL = "removal suggestion"
@@ -48,8 +47,8 @@ class CommentFlag(models.Model):
class Meta:
db_table = 'django_comment_flags'
unique_together = [('user', 'comment', 'flag')]
- verbose_name = _('comment flag')
- verbose_name_plural = _('comment flags')
+ verbose_name = ('comment flag')
+ verbose_name_plural = ('comment flags')
def __str__(self):
return "%s flag of comment ID %s by %s" % (