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 hidded <me@…>, 17 years ago)
  • usr/lib/python2.5/site-packages/django/contrib/admin/views/main.py

     
    503503
    504504    # Populate deleted_objects, a data structure of all related objects that
    505505    # 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)), []]
    507507    perms_needed = sets.Set()
    508508    _get_deleted_objects(deleted_objects, perms_needed, request.user, obj, opts, 1)
    509509
Back to Top