Opened 12 years ago

Closed 12 years ago

Last modified 12 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: dev
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 12 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 by Claude Paroz, 12 years ago

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

by Christopher Medrela, 12 years ago

Attachment: ticket17618.diff added

comment:2 by Christopher Medrela, 12 years ago

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 by Simon Charette, 12 years ago

Triage Stage: AcceptedReady for checkin

Looks good to me.

comment:4 by Tim Graham, 12 years ago

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 by Tim Graham, 12 years ago

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