Skip to content
Browse files

[soc2009/admin-ui] The Gaynor commandeth: x.__unicode__() --> unicode(x)

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 00c983c commit 81e8b8bbd5aecce5056e9eac22600078709a2bee @zain zain committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/views/
2 django/contrib/admin/views/
@@ -21,7 +21,7 @@ def foreignkey_autocomplete(request, related_string_functions=None):
to_string_function = related_string_functions[model_name]
except KeyError:
- to_string_function = lambda x: x.__unicode__()
+ to_string_function = lambda x: unicode(x)
if search_fields and app_label and model_name and (query or object_pk):
def construct_search(field_name):
# use different lookup methods depending on the notation

0 comments on commit 81e8b8b

Please sign in to comment.
Something went wrong with that request. Please try again.