Opened 18 years ago

Closed 17 years ago

#2636 closed enhancement (wontfix)

[patch] Allowed single quotes in template filter parameters

Reported by: Enrico <rico.bl@…> Owned by: nobody
Component: Template system Version: dev
Severity: minor Keywords: template filter quotes
Cc: Triage Stage: Design decision needed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: yes
Easy pickings: no UI/UX: no

Description

Template filters parameters requires the use of double quotes, this patch allows the use of single quotes.

Attachments (1)

__init__.py.diff (1.1 KB ) - added by Enrico <rico.bl@…> 18 years ago.
django.template.init

Download all attachments as: .zip

Change History (5)

by Enrico <rico.bl@…>, 18 years ago

Attachment: __init__.py.diff added

django.template.init

comment:1 by Malcolm Tredinnick, 18 years ago

I don't really have an opinion at the moment about whether this is really needed. However, it does look like the patch is wrong: it would allow a string quoted "like this' (mismatched leading and trailing quotes). You are going to need two branchs in the reg-exp each time.

comment:2 by (none), 18 years ago

milestone: Version 1.0

Milestone Version 1.0 deleted

comment:3 by Chris Beaven, 18 years ago

Patch needs improvement: set
Triage Stage: UnreviewedDesign decision needed

comment:4 by Jacob, 17 years ago

Resolution: wontfix
Status: newclosed
Note: See TracTickets for help on using tickets.
Back to Top