diff --git a/django/contrib/admin/models/admin.py b/django/contrib/admin/models/admin.py index 473642e24c..907de5f417 100644 --- a/django/contrib/admin/models/admin.py +++ b/django/contrib/admin/models/admin.py @@ -1,17 +1,19 @@ from django.core import meta from django.models import auth, core +from django.utils.translation import gettext_lazy as _ class LogEntry(meta.Model): - action_time = meta.DateTimeField(auto_now=True) + action_time = meta.DateTimeField(_('action time'), auto_now=True) user = meta.ForeignKey(auth.User) - content_type = meta.ForeignKey(core.ContentType, blank=True, null=True) - object_id = meta.TextField(blank=True, null=True) - object_repr = meta.CharField(maxlength=200) - action_flag = meta.PositiveSmallIntegerField() - change_message = meta.TextField(blank=True) + content_type = meta.ForeignKey(_('content type'), core.ContentType, blank=True, null=True) + object_id = meta.TextField(_('object id'), blank=True, null=True) + object_repr = meta.CharField('object repr'), maxlength=200) + action_flag = meta.PositiveSmallIntegerField(_('action flag')) + change_message = meta.TextField(_('change message'), blank=True) class META: module_name = 'log' - verbose_name_plural = 'log entries' + verbose_name = _('log entry') + verbose_name_plural = _('log entries') db_table = 'django_admin_log' ordering = ('-action_time',) module_constants = {