Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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 Memon authored August 06, 2009
2  django/contrib/admin/views/autocomplete.py
@@ -21,7 +21,7 @@ def foreignkey_autocomplete(request, related_string_functions=None):
21 21
     try:
22 22
         to_string_function = related_string_functions[model_name]
23 23
     except KeyError:
24  
-        to_string_function = lambda x: x.__unicode__()
  24
+        to_string_function = lambda x: unicode(x)
25 25
     if search_fields and app_label and model_name and (query or object_pk):
26 26
         def construct_search(field_name):
27 27
             # use different lookup methods depending on the notation

0 notes on commit 81e8b8b

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