Ticket #4545: admin-crash-if-delete-unicode-contained-primary-key.diff
File admin-crash-if-delete-unicode-contained-primary-key.diff, 848 bytes (added by , 17 years ago) |
---|
-
usr/lib/python2.5/site-packages/django/contrib/admin/views/main.py
503 503 504 504 # Populate deleted_objects, a data structure of all related objects that 505 505 # will also be deleted. 506 deleted_objects = [u'%s: <a href="../../%s/">%s</a>' % (force_unicode(capfirst(opts.verbose_name)), object_id, escape(obj)), []]506 deleted_objects = [u'%s: <a href="../../%s/">%s</a>' % (force_unicode(capfirst(opts.verbose_name)), force_unicode(object_id), escape(obj)), []] 507 507 perms_needed = sets.Set() 508 508 _get_deleted_objects(deleted_objects, perms_needed, request.user, obj, opts, 1) 509 509