za...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed d7da423

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

  • Participants
  • Parent commits ba49b9c
  • Branches soc2009/admin-ui

Comments (0)

Files changed (1)

File django/contrib/admin/views/

         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