Ticket #5045: admin-quote_unicode.patch

File admin-quote_unicode.patch, 506 bytes (added by robbie@…, 17 years ago)

Simple patch to correctly catch strings & unicode strings

  • trunk/django/contrib/admin/views/main.py

     
    5656    quoting is slightly different so that it doesn't get automatically
    5757    unquoted by the Web browser.
    5858    """
    59     if type(s) != type(''):
     59    if not isinstance(s, basestring):
    6060        return s
    6161    res = list(s)
    6262    for i in range(len(res)):
Back to Top