Ticket #16438: admin_models.diff
File admin_models.diff, 765 bytes (added by , 13 years ago) |
---|
-
django/contrib/admin/models.py
24 24 action_flag = models.PositiveSmallIntegerField(_('action flag')) 25 25 change_message = models.TextField(_('change message'), blank=True) 26 26 objects = LogEntryManager() 27 27 28 class Meta: 28 29 verbose_name = _('log entry') 29 30 verbose_name_plural = _('log entries') … … 34 35 return smart_unicode(self.action_time) 35 36 36 37 def __unicode__(self): 37 38 38 if self.action_flag == ADDITION: 39 39 return _('Added "%(object)s".') % {'object': self.object_repr} 40 40 elif self.action_flag == CHANGE: