#27022: some DjangoTemplates builtin tags misparse lack of whitespace between
variable name and boolean operator in arguments
-------------------------------------+-------------------------------------
     Reporter:  cowbert              |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  Template system      |                  Version:  1.10
     Severity:  Normal               |               Resolution:
     Keywords:  tags, arguments,     |             Triage Stage:  Accepted
  operators, whitespace              |
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by bmispelon):

 * needs_better_patch:   => 0
 * needs_docs:   => 0
 * needs_tests:   => 0
 * stage:  Unreviewed => Accepted


Comment:

 Hi,

 Indeed, the template language doesn't seem to support that. I'm not sure
 if it ever did either (I went back as far as 1.6 and observed the same
 error).

 It'd be nice to be able to make this use-case work, so that we can match
 the Python semantics a bit better.
 However, if it's too tricky then this should be mentionned in the
 documentation [1] at least.


 Thanks.

 [1] https://docs.djangoproject.com/en/dev/ref/templates/builtins/#boolean-
 operators

--
Ticket URL: <https://code.djangoproject.com/ticket/27022#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.3e8e4f10eb10965bacb2a3cac2c66688%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to