Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/admin-ui@11410 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 81e8b8bbd5aecce5056e9eac22600078709a2bee 1 parent 00c983c
@zain zain authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/contrib/admin/views/autocomplete.py
View
2  django/contrib/admin/views/autocomplete.py
@@ -21,7 +21,7 @@ def foreignkey_autocomplete(request, related_string_functions=None):
try:
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
Please sign in to comment.
Something went wrong with that request. Please try again.