Ticket #5176: patch.2.diff

File patch.2.diff, 489 bytes (added by Eratothene, 8 years ago)

The same patc

  • django/utils/cache.py

    old new  
    117117    for header in headerlist:
    118118        value = request.META.get(header, None)
    119119        if value is not None:
    120             ctx.update(value)
     120            ctx.update(str(value))
    121121    return 'views.decorators.cache.cache_page.%s.%s.%s' % (key_prefix, request.path, ctx.hexdigest())
    122122
    123123def get_cache_key(request, key_prefix=None):
Back to Top