#18125: Using filters in if tag example is misleading
-------------------------------+--------------------
     Reporter:  ebrelsford@…   |      Owner:  nobody
         Type:  Uncategorized  |     Status:  new
    Component:  Uncategorized  |    Version:  1.4
     Severity:  Normal         |   Keywords:
 Triage Stage:  Unreviewed     |  Has patch:  0
Easy pickings:  0              |      UI/UX:  0
-------------------------------+--------------------
 In the template language documentation, there is an
 [https://docs.djangoproject.com/en/dev/topics/templates/#tags example]
 where the length filter is used in an if tag where a list's length is
 compared to 1. It starts with "You can also use filters and various
 operators in the if tag..."

 Since the filter returns a string and the comparison will be a string
 comparison, this basically works in the example but anything more
 complicated is likely to fail. I think it would be helpful if a caveat was
 written into this example that made this clear.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/18125>
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 post to this group, send email to django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to