Skip to content

Commit

Permalink
unicode: Fixed #454 -- Fixed admin bug for custom primary keys. Thanks,
Browse files Browse the repository at this point in the history
me@hiddedpp.com.


git-svn-id: http://code.djangoproject.com/svn/django/branches/unicode@5480 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
malcolmt committed Jun 17, 2007
1 parent d398023 commit d2080dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/contrib/admin/views/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit d2080dd

Please sign in to comment.