#19114: admin LogEntry __unicode__() returns a proxy in some cases -------------------------------------+------------------------------------- Reporter: niko@… | Owner: nobody Type: Bug | Status: new Component: contrib.admin | Version: 1.4 Severity: Normal | Resolution: Keywords: proxy unicode | Triage Stage: Accepted logentry admin | Needs documentation: 0 Has patch: 0 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 1 | -------------------------------------+-------------------------------------
Comment (by beda): As this situation occurs in the case when the action_flag attribute does not match any of the predefined constants, I think that we could kill two birds with one stone by adding the action_flag to the unicode output in this case. This makes the unicode representation reflect the action_flag value and also deals with the bug at hand: {{{ 46c46 < return _('LogEntry Object') --- > return _('LogEntry Object, action-flag=%(action_flag)d') % {'action_flag': self.action_flag} }}} -- Ticket URL: <https://code.djangoproject.com/ticket/19114#comment:2> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.