Code

Ticket #16438: admin_models.diff

File admin_models.diff, 765 bytes (added by philipkimmey, 3 years ago)

Patch to resolve #16438

Line 
1Index: django/contrib/admin/models.py
2===================================================================
3--- django/contrib/admin/models.py      (revision 16537)
4+++ django/contrib/admin/models.py      (working copy)
5@@ -24,6 +24,7 @@
6     action_flag = models.PositiveSmallIntegerField(_('action flag'))
7     change_message = models.TextField(_('change message'), blank=True)
8     objects = LogEntryManager()
9+
10     class Meta:
11         verbose_name = _('log entry')
12         verbose_name_plural = _('log entries')
13@@ -34,7 +35,6 @@
14         return smart_unicode(self.action_time)
15 
16     def __unicode__(self):
17-
18         if self.action_flag == ADDITION:
19             return _('Added "%(object)s".') % {'object': self.object_repr}
20         elif self.action_flag == CHANGE: