id summary reporter owner description type status component version severity resolution keywords cc stage has_patch needs_docs needs_tests needs_better_patch easy ui_ux 18125 Using filters in if tag example is misleading ebrelsford@… nobody "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." Bug closed Documentation 1.4 Normal fixed Ready for checkin 1 0 0 0 0 0