Ticket #16438: admin_models.diff

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

Patch to resolve #16438

  • django/contrib/admin/models.py

     
    2424    action_flag = models.PositiveSmallIntegerField(_('action flag'))
    2525    change_message = models.TextField(_('change message'), blank=True)
    2626    objects = LogEntryManager()
     27
    2728    class Meta:
    2829        verbose_name = _('log entry')
    2930        verbose_name_plural = _('log entries')
     
    3435        return smart_unicode(self.action_time)
    3536
    3637    def __unicode__(self):
    37 
    3838        if self.action_flag == ADDITION:
    3939            return _('Added "%(object)s".') % {'object': self.object_repr}
    4040        elif self.action_flag == CHANGE:
Back to Top