#10586 closed (fixed)
@last_modified call condition(last_modified=callable), but condition expect last_modified_func
Reported by: | qoqenator | Owned by: | Malcolm Tredinnick |
---|---|---|---|
Component: | Uncategorized | Version: | 1.0 |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
REV. 10115
In django.views.decorators.http:
def etag(callable): return condition(etag=callable) def last_modified(callable): return condition(last_modified=callable)
But:
def condition(etag_func=None, last_modified_func=None): ...
Attachments (1)
Change History (5)
by , 16 years ago
Attachment: | 10586.patch added |
---|
comment:1 by , 16 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 16 years ago
milestone: | → 1.1 |
---|
comment:3 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
I'm actually thinking I might just get rid of those two decorators and only keep
conditional()
, since they're not really such a huge shortcut and require lots of extra documentation.Still, one way or the other, this needs fixing up. Thanks for noticing.