Ticket #10586: 10586.patch

File 10586.patch, 540 bytes (added by qoqenator, 16 years ago)
  • django/views/decorators/http.py

     
    128128
    129129# Shortcut decorators for common cases based on ETag or Last-Modified only
    130130def etag(callable):
    131     return condition(etag=callable)
     131    return condition(etag_func=callable)
    132132
    133133def last_modified(callable):
    134     return condition(last_modified=callable)
     134    return condition(last_modified_func=callable)
    135135
Back to Top