diff --git a/django/contrib/admin/models.py b/django/contrib/admin/models.py index 3f7dece0fe..0e5b8a79da 100644 --- a/django/contrib/admin/models.py +++ b/django/contrib/admin/models.py @@ -23,7 +23,9 @@ class LogEntry(models.Model): object_repr = models.CharField(_('object repr'), max_length=200) action_flag = models.PositiveSmallIntegerField(_('action flag')) change_message = models.TextField(_('change message'), blank=True) + objects = LogEntryManager() + class Meta: verbose_name = _('log entry') verbose_name_plural = _('log entries') @@ -34,7 +36,6 @@ class LogEntry(models.Model): return smart_unicode(self.action_time) def __unicode__(self): - if self.action_flag == ADDITION: return _('Added "%(object)s".') % {'object': self.object_repr} elif self.action_flag == CHANGE: