#2235 closed defect (fixed)
Typo in docs for inclusion_tag decorator
Reported by: | Owned by: | Jacob | |
---|---|---|---|
Component: | Documentation | Version: | dev |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In the templates-for-programmers section, the example suggests a 2.4 decorator:
@inclusion_tag('results.html') def show_results(poll): ...
But I believe one needs to have it like so:
@register.inclusion_tag('results.html') def show_results(poll): ...
Note:
See TracTickets
for help on using tickets.
(In [3205]) Fixed #2235 -- corrected a couple of typos pointed out by jvinet@….