Django

Code

Changeset 3553

Show
Ignore:
Timestamp:
08/11/06 00:31:08 (2 years ago)
Author:
adrian
Message:

Fixed #2500 -- Fixed bug in admin related-object pop-up window when using a primary key value that isn't an integer. Thanks, Gary Wilson and deryck@samba.org

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/contrib/admin/views/main.py

    r3411 r3553  
    264264                return HttpResponseRedirect(post_url_continue % pk_value) 
    265265            if request.POST.has_key("_popup"): 
    266                 return HttpResponse('<script type="text/javascript">opener.dismissAddAnotherPopup(window, %s, "%s");</script>' % \ 
     266                return HttpResponse('<script type="text/javascript">opener.dismissAddAnotherPopup(window, %r, "%s");</script>' % \ 
    267267                    (pk_value, str(new_object).replace('"', '\\"'))) 
    268268            elif request.POST.has_key("_addanother"):