diff options
Diffstat (limited to 'app/lib/django_comments/admin.py')
-rw-r--r-- | app/lib/django_comments/admin.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/app/lib/django_comments/admin.py b/app/lib/django_comments/admin.py index 8451c70..0f25755 100644 --- a/app/lib/django_comments/admin.py +++ b/app/lib/django_comments/admin.py @@ -2,7 +2,6 @@ from __future__ import unicode_literals from django.contrib import admin from django.contrib.auth import get_user_model -from django.utils.translation import ugettext_lazy as _, ungettext from django_comments import get_model from django_comments.views.moderation import perform_flag, perform_approve, perform_delete @@ -26,11 +25,11 @@ class CommentsAdmin(admin.ModelAdmin): {'fields': ('content_type', 'object_pk', 'site')} ), ( - _('Content'), + ('Content'), {'fields': ('user', 'user_name', 'user_email', 'user_url', 'comment')} ), ( - _('Metadata'), + ('Metadata'), {'fields': ('submit_date', 'ip_address', 'is_public', 'is_removed')} ), ) @@ -59,19 +58,19 @@ class CommentsAdmin(admin.ModelAdmin): self._bulk_flag(request, queryset, perform_flag, lambda n: ungettext('flagged', 'flagged', n)) - flag_comments.short_description = _("Flag selected comments") + flag_comments.short_description = ("Flag selected comments") def approve_comments(self, request, queryset): self._bulk_flag(request, queryset, perform_approve, lambda n: ungettext('approved', 'approved', n)) - approve_comments.short_description = _("Approve selected comments") + approve_comments.short_description = ("Approve selected comments") def remove_comments(self, request, queryset): self._bulk_flag(request, queryset, perform_delete, lambda n: ungettext('removed', 'removed', n)) - remove_comments.short_description = _("Remove selected comments") + remove_comments.short_description = ("Remove selected comments") def _bulk_flag(self, request, queryset, action, done_message): """ |