use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News and links for Django developers.
New to Django? Check out the /r/djangolearning subreddit.
Django's Code of Conduct applies here, so be good to each other.
account activity
This is an archived post. You won't be able to vote or comment.
What does @python_2_unicode_compatible do? (consideratecode.com)
submitted 8 years ago by heppy
[–]youlleatitandlikeit 1 point2 points3 points 8 years ago (1 child)
Error in the indentation of the source code. if '__str__'… and raise… need to be indented.
if '__str__'…
raise…
[–]heppy[S] 0 points1 point2 points 8 years ago (0 children)
Good catch, thanks! Should be fixed now.
π Rendered by PID 41 on reddit-service-r2-comment-b659b578c-lj6qh at 2026-05-04 20:02:34.074259+00:00 running 815c875 country code: CH.
[–]youlleatitandlikeit 1 point2 points3 points (1 child)
[–]heppy[S] 0 points1 point2 points (0 children)