Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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...
commit d2080dd694b31d235f16efe748a997ebfdb5b394 1 parent d398023
Malcolm Tredinnick authored June 17, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/contrib/admin/views/main.py
2  django/contrib/admin/views/main.py
@@ -503,7 +503,7 @@ def delete_stage(request, app_label, model_name, object_id):
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
 

0 notes on commit d2080dd

Please sign in to comment.
Something went wrong with that request. Please try again.