Permalink
Browse files

unicode: Fixed #454 -- Fixed admin bug for custom primary keys. Thanks,

me@hiddedpp.com.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent d398023 commit d2080dd694b31d235f16efe748a997ebfdb5b394 @malcolmt malcolmt committed Jun 17, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/contrib/admin/views/main.py
@@ -503,7 +503,7 @@ def delete_stage(request, app_label, model_name, object_id):
# Populate deleted_objects, a data structure of all related objects that
# will also be deleted.
- deleted_objects = [u'%s: <a href="../../%s/">%s</a>' % (force_unicode(capfirst(opts.verbose_name)), object_id, escape(obj)), []]
+ deleted_objects = [u'%s: <a href="../../%s/">%s</a>' % (force_unicode(capfirst(opts.verbose_name)), force_unicode(object_id), escape(obj)), []]
perms_needed = sets.Set()
_get_deleted_objects(deleted_objects, perms_needed, request.user, obj, opts, 1)

0 comments on commit d2080dd

Please sign in to comment.