Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2235 closed defect (fixed)

Typo in docs for inclusion_tag decorator

Reported by: jvinet@… 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):
    ...

Change History (1)

comment:1 by Malcolm Tredinnick, 18 years ago

Resolution: fixed
Status: newclosed

(In [3205]) Fixed #2235 -- corrected a couple of typos pointed out by jvinet@….

Note: See TracTickets for help on using tickets.
Back to Top