mirror of
https://github.com/django/django.git
synced 2025-07-04 01:39:20 +00:00
i18n: re-added lost translation hooks (dropped in the last big merge)
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@962 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
dba9cf9fd0
commit
e1cae1e090
@ -1,17 +1,19 @@
|
|||||||
from django.core import meta
|
from django.core import meta
|
||||||
from django.models import auth, core
|
from django.models import auth, core
|
||||||
|
from django.utils.translation import gettext_lazy as _
|
||||||
|
|
||||||
class LogEntry(meta.Model):
|
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)
|
user = meta.ForeignKey(auth.User)
|
||||||
content_type = meta.ForeignKey(core.ContentType, blank=True, null=True)
|
content_type = meta.ForeignKey(_('content type'), core.ContentType, blank=True, null=True)
|
||||||
object_id = meta.TextField(blank=True, null=True)
|
object_id = meta.TextField(_('object id'), blank=True, null=True)
|
||||||
object_repr = meta.CharField(maxlength=200)
|
object_repr = meta.CharField('object repr'), maxlength=200)
|
||||||
action_flag = meta.PositiveSmallIntegerField()
|
action_flag = meta.PositiveSmallIntegerField(_('action flag'))
|
||||||
change_message = meta.TextField(blank=True)
|
change_message = meta.TextField(_('change message'), blank=True)
|
||||||
class META:
|
class META:
|
||||||
module_name = 'log'
|
module_name = 'log'
|
||||||
verbose_name_plural = 'log entries'
|
verbose_name = _('log entry')
|
||||||
|
verbose_name_plural = _('log entries')
|
||||||
db_table = 'django_admin_log'
|
db_table = 'django_admin_log'
|
||||||
ordering = ('-action_time',)
|
ordering = ('-action_time',)
|
||||||
module_constants = {
|
module_constants = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user