Ticket #4315: unicode-admin.2.diff
File unicode-admin.2.diff, 906 bytes (added by , 17 years ago) |
---|
-
contrib/admin/views/main.py
12 12 from django.http import Http404, HttpResponse, HttpResponseRedirect 13 13 from django.utils.html import escape 14 14 from django.utils.text import capfirst, get_text_list 15 from django.utils.encoding import smart_unicode 15 from django.utils.encoding import smart_unicode, smart_str 16 16 from django.utils.translation import ugettext as _ 17 17 import operator 18 18 … … 687 687 if i in lookup_params: 688 688 del lookup_params[i] 689 689 690 for key, value in lookup_params.items(): 691 del lookup_params[key] 692 lookup_params[smart_str(key)] = smart_str(value) 693 690 694 # Apply lookup parameters from the query string. 691 695 qs = qs.filter(**lookup_params) 692 696