mirror of https://github.com/django/django.git
Fixed #16438 -- Corrected whitespace in admin models module. Thanks, philipkimmey.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@16601 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
cb1d660962
commit
e912edec20
|
@ -23,7 +23,9 @@ class LogEntry(models.Model):
|
||||||
object_repr = models.CharField(_('object repr'), max_length=200)
|
object_repr = models.CharField(_('object repr'), max_length=200)
|
||||||
action_flag = models.PositiveSmallIntegerField(_('action flag'))
|
action_flag = models.PositiveSmallIntegerField(_('action flag'))
|
||||||
change_message = models.TextField(_('change message'), blank=True)
|
change_message = models.TextField(_('change message'), blank=True)
|
||||||
|
|
||||||
objects = LogEntryManager()
|
objects = LogEntryManager()
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _('log entry')
|
verbose_name = _('log entry')
|
||||||
verbose_name_plural = _('log entries')
|
verbose_name_plural = _('log entries')
|
||||||
|
@ -34,7 +36,6 @@ class LogEntry(models.Model):
|
||||||
return smart_unicode(self.action_time)
|
return smart_unicode(self.action_time)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
|
|
||||||
if self.action_flag == ADDITION:
|
if self.action_flag == ADDITION:
|
||||||
return _('Added "%(object)s".') % {'object': self.object_repr}
|
return _('Added "%(object)s".') % {'object': self.object_repr}
|
||||||
elif self.action_flag == CHANGE:
|
elif self.action_flag == CHANGE:
|
||||||
|
|
Loading…
Reference in New Issue