#15661: LogEntry objects have no unicode method
-------------------------------------+-------------------------------------
Reporter: Keryn | Owner: nobody
Knight <keryn@…> | Status: new
Type: New | Component: contrib.admin
feature | Severity: Normal
Milestone: | Keywords: logentry unicode
Version: SVN | Has patch: 1
Resolution: | Needs tests: 1
Triage Stage: Accepted | Easy pickings: 1
Needs documentation: 0 |
Patch needs improvement: 1 |
-------------------------------------+-------------------------------------
Comment (by jacob):
Sorry to lay on another yet nitpick, but it'd be more Pythonic to just
have multiple `return` statements. So:
{{{
if self.action_flag == ADDITION:
return ...
elif ...:
return ...
...
else:
return ...
}}}
(Yes, your CS101 professor taught you that multiple return statements were
wrong. He wasn't a Python developer, clearly.)
--
Ticket URL: <http://code.djangoproject.com/ticket/15661#comment:5>
Django <http://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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.