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 14333 Template Ternary Operator scottix nobody "Hey guys new django user here, I really like what you guys are doing. The feature request I am presenting is small but I think would be a good addition. I think there needs to a Ternary operator in your template system. I know you can do {% if %}{% else %}{% endif %} Seems a little overkill for just needing to display one variable over the other. My suggestion is create a ternary operator. {% ? : %} It could be cut down even more by this. {% ? %} I think this is a great way to reduce code markup and make it more readable. Thank you for your time. Scottix" closed Template system 1.2 wontfix ternary if Unreviewed 0 0 0 0 0 0