Ticket #5047: max_age.diff
File max_age.diff, 524 bytes (added by , 17 years ago) |
---|
-
django/utils/cache.py
57 57 cc = dict([dictitem(el) for el in cc]) 58 58 else: 59 59 cc = {} 60 61 if 'max-age' in cc and 'max_age' in kwargs: 62 kwargs['max_age'] = min(cc['max-age'], kwargs['max_age']) 63 60 64 for (k,v) in kwargs.items(): 61 65 cc[k.replace('_', '-')] = v 62 66 cc = ', '.join([dictvalue(el) for el in cc.items()])