Opened 3 hours ago

Closed 43 minutes ago

#37005 closed Cleanup/optimization (invalid)

Typo in custom template tags and filters example code block

Reported by: daviddehoog Owned by:
Component: Documentation Version: 6.0
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

In the documentation for custom template tags and filters, under Simple Block Tags there's "A complete example": https://docs.djangoproject.com/en/6.0/howto/custom-template-tags/

Line 15 is:

<details{open}>

which looks like a typo that should probably be:

<details>{open}

Cheers
David

Change History (1)

comment:1 by Tim Graham, 43 minutes ago

Resolution: invalid
Status: newclosed

The output is <details open> which creates a details box in its open state.

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