Index: django/contrib/admin/models.py =================================================================== --- django/contrib/admin/models.py (revision 8431) +++ django/contrib/admin/models.py (working copy) @@ -9,6 +9,11 @@ ADDITION = 1 CHANGE = 2 DELETION = 3 +LOG_ACTION_CHOICES = ( + ( ADDITION, "Added." ), + ( CHANGE, "Changed." ), + ( DELETION, "Deleted." ), +) class LogEntryManager(models.Manager): def log_action(self, user_id, content_type_id, object_id, object_repr, action_flag, change_message=''): @@ -21,7 +26,7 @@ content_type = models.ForeignKey(ContentType, blank=True, null=True) object_id = models.TextField(_('object id'), blank=True, null=True) object_repr = models.CharField(_('object repr'), max_length=200) - action_flag = models.PositiveSmallIntegerField(_('action flag')) + action_flag = models.PositiveSmallIntegerField(_('action flag'),choices=LOG_ACTION_CHOICES) change_message = models.TextField(_('change message'), blank=True) objects = LogEntryManager() class Meta: Index: django/contrib/admin/templates/admin/object_history.html =================================================================== --- django/contrib/admin/templates/admin/object_history.html (revision 8431) +++ django/contrib/admin/templates/admin/object_history.html (working copy) @@ -23,7 +23,7 @@