Ticket #6904: 6904_revision7393.diff

File 6904_revision7393.diff, 877 bytes (added by Michael Axiak, 16 years ago)

New patch that works in python 2.3

  • django/template/defaultfilters.py

     
    417417    the argument.
    418418    """
    419419    var_resolve = Variable(arg).resolve
    420     decorated = [(var_resolve(item), item) for item in value]
     420    decorated = [(unicode.lower(var_resolve(item)), item) for item in value]
    421421    decorated.sort()
    422422    return [item[1] for item in decorated]
    423423dictsort.is_safe = False
     
    428428    property given in the argument.
    429429    """
    430430    var_resolve = Variable(arg).resolve
    431     decorated = [(var_resolve(item), item) for item in value]
     431    decorated = [(unicode.lower(var_resolve(item)), item) for item in value]
    432432    decorated.sort()
    433433    decorated.reverse()
    434434    return [item[1] for item in decorated]
Back to Top