#17618 closed Cleanup/optimization (fixed)
Variables names in template must not start with an underscore.
| Reported by: | 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)
Change History (6)
comment:1 by , 14 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|---|
| Type: | Uncategorized → Cleanup/optimization |
| Version: | 1.3 → SVN |
by , 14 years ago
| Attachment: | ticket17618.diff added |
|---|
comment:2 by , 14 years ago
| Cc: | added |
|---|---|
| Easy pickings: | set |
| Has patch: | set |
| Owner: | changed from to |
| Status: | new → assigned |
Note:
See TracTickets
for help on using tickets.
I've written a patch.