Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#17618 closed Cleanup/optimization (fixed)

Variables names in template must not start with an underscore.

Reported by: cguillemette@… Owned by: Christopher Medrela
Component: Documentation Version: master
Severity: Normal Keywords:
Cc: krzysiumed@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The doc (https://docs.djangoproject.com/en/dev/ref/templates/api/) says "Variable names must consist of any letter (A-Z), any digit (0-9), an underscore or a dot.".

It can be misleading, because in fact, variable names can consist of underscores but can't start with one.

Attachments (1)

ticket17618.diff (529 bytes) - added by Christopher Medrela 5 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 5 years ago by Claude Paroz

Triage Stage: UnreviewedAccepted
Type: UncategorizedCleanup/optimization
Version: 1.3SVN

Changed 5 years ago by Christopher Medrela

Attachment: ticket17618.diff added

comment:2 Changed 5 years ago by Christopher Medrela

Cc: krzysiumed@… added
Easy pickings: set
Has patch: set
Owner: changed from nobody to Christopher Medrela
Status: newassigned

I've written a patch.

comment:3 Changed 5 years ago by Simon Charette

Triage Stage: AcceptedReady for checkin

Looks good to me.

comment:4 Changed 5 years ago by Tim Graham

Resolution: fixed
Status: assignedclosed

In [17504]:

Fixed #17618 - Documented that variable names in template must not start with an underscore; thanks guillemette and krzysiumed.

comment:5 Changed 5 years ago by Tim Graham

In [17505]:

[1.3.X] Fixed #17618 - Documented that variable names in template must not start with an underscore; thanks guillemette and krzysiumed.

Backport of r17504 from trunk.

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